[llvm] feac561 - [NFC][SimplifyCFG] Fix a return value in `ConstantComparesGatherer` (#155154)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 24 04:40:44 PDT 2025
Author: Yingwei Zheng
Date: 2025-08-24T19:40:40+08:00
New Revision: feac561478bbdbc28a4fe22ba070e27a3a495ffb
URL: https://github.com/llvm/llvm-project/commit/feac561478bbdbc28a4fe22ba070e27a3a495ffb
DIFF: https://github.com/llvm/llvm-project/commit/feac561478bbdbc28a4fe22ba070e27a3a495ffb.diff
LOG: [NFC][SimplifyCFG] Fix a return value in `ConstantComparesGatherer` (#155154)
`ICI->getOperand(0)` is non-null.
Added:
Modified:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 48a99543d7083..7a538ae2c583f 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -712,7 +712,7 @@ struct ConstantComparesGatherer {
UsedICmps++;
Vals.push_back(C);
- return ICI->getOperand(0);
+ return true;
}
// If we have "x ult 3", for example, then we can add 0,1,2 to the set.
More information about the llvm-commits
mailing list