[llvm] [InstCombine] Use KnownBits predicate helpers (PR #115874)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 06:51:54 PST 2024
================
@@ -6544,6 +6544,35 @@ bool InstCombinerImpl::replacedSelectWithOperand(SelectInst *SI,
return false;
}
+static std::optional<bool> compareKnownBits(ICmpInst::Predicate Pred,
----------------
nikic wrote:
Yeah, we should have a common helper. I'll add `ICmpInst::compare()`, similar to the existing function working on APInt.
https://github.com/llvm/llvm-project/pull/115874
More information about the llvm-commits
mailing list