[llvm] [InstSimplify] Canonicalize predicates into strict versions in simplifyICmpInst (PR #196238)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 01:35:59 PDT 2026
================
@@ -8802,6 +8802,9 @@ llvm::getFlippedStrictnessPredicateAndConstant(CmpPredicate Pred, Constant *C) {
return std::nullopt;
Type *Type = C->getType();
+
+ if (Type->getScalarSizeInBits() == 1)
+ return std::nullopt;
----------------
nikic wrote:
Why is this check needed?
https://github.com/llvm/llvm-project/pull/196238
More information about the llvm-commits
mailing list