[llvm] [SimplifyCFG] Handle that first matched eq cond in if chain can be Extra condition. (PR #154007)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 13:23:23 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) {
----------------
andjo403 wrote:
was tricked by the null check at the end of the function but fixed now
https://github.com/llvm/llvm-project/pull/154007
More information about the llvm-commits
mailing list