[PATCH] D139311: InstCombine: Match pattern that appears in clang's __builtin_isnormal
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 14:09:19 PST 2022
foad added inline comments.
================
Comment at: llvm/lib/IR/Instructions.cpp:4098
+CmpInst::Predicate CmpInst::getOrderedPredicate(Predicate Pred) {
+ switch (Pred) {
+ case FCmpInst::FCMP_OEQ:
----------------
This whole function is just `return Pred & 7;`. See the definition of CmpInst::Predicate. The floating point predicates are carefully numbered to make exactly this kind of thing possible.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139311/new/
https://reviews.llvm.org/D139311
More information about the llvm-commits
mailing list