[llvm] [CmpInstAnalysis] Decompose icmp eq (and x, C) C2 (PR #136367)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 23 00:54:16 PDT 2025
================
@@ -97,9 +99,10 @@ llvm::decomposeBitTestICmp(Value *LHS, Value *RHS, CmpInst::Predicate Pred,
}
DecomposedBitTest Result;
+
switch (Pred) {
default:
- llvm_unreachable("Unexpected predicate");
+ return std::nullopt;
----------------
dtcxzyw wrote:
It is still unreachable.
https://github.com/llvm/llvm-project/pull/136367
More information about the llvm-commits
mailing list