[PATCH] D104408: AMDGPU/GlobalISel: Treat undef as KnownNeverNaN

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 17 01:52:23 PDT 2021


foad added a comment.

`matchUnaryPredicate` already has an `AllowUndefs` argument, so you could do the same.

Incidentally ValueTracking's isKnownNeverNaN treats undef as not-nan, but only when it appears as an element of a vector constant.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104408/new/

https://reviews.llvm.org/D104408



More information about the llvm-commits mailing list