[llvm] [SimplifyCFG] Handle that first matched eq cond in if chain can be Extra condition. (PR #154007)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 10:32:31 PDT 2025
================
@@ -581,8 +592,14 @@ struct ConstantComparesGatherer {
/// Try to set the current value used for the comparison, it succeeds only if
/// it wasn't set before or if the new value is the same as the old one
bool setValueOnce(Value *NewVal) {
- if (CompValue && CompValue != NewVal)
+ if (IgnoreFirstMatch && NewVal) {
----------------
dtcxzyw wrote:
NewVal is non-null.
https://github.com/llvm/llvm-project/pull/154007
More information about the llvm-commits
mailing list