[llvm] [InstCombine] Use KnownBits predicate helpers (PR #115874)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 06:49:52 PST 2024
================
@@ -6544,6 +6544,35 @@ bool InstCombinerImpl::replacedSelectWithOperand(SelectInst *SI,
return false;
}
+static std::optional<bool> compareKnownBits(ICmpInst::Predicate Pred,
----------------
dtcxzyw wrote:
We already implemented similar logic in `CombinerHelper::matchICmpToTrueFalseKnownBits`. Do we need a common helper?
https://github.com/llvm/llvm-project/pull/115874
More information about the llvm-commits
mailing list