Skip to content

Commit 4299b28

Browse files
committed
[InstCombine] add helper function for select-of-bools folds; NFC
This set of folds keeps growing, and it contains bugs like issue #58552, so make it easier to spot those via backtrace.
1 parent b5caa68 commit 4299b28

File tree

2 files changed

+197
-183
lines changed

2 files changed

+197
-183
lines changed

llvm/lib/Transforms/InstCombine/InstCombineInternal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final
733733
Instruction *foldICmpBitCast(ICmpInst &Cmp);
734734

735735
// Helpers of visitSelectInst().
736+
Instruction *foldSelectOfBools(SelectInst &SI);
736737
Instruction *foldSelectExtConst(SelectInst &Sel);
737738
Instruction *foldSelectOpOp(SelectInst &SI, Instruction *TI, Instruction *FI);
738739
Instruction *foldSelectIntoOp(SelectInst &SI, Value *, Value *);

0 commit comments

Comments
 (0)