Skip to content

Commit 2baa72a

Browse files
Reduced test cases to minimal.
1 parent 9c96630 commit 2baa72a

File tree

2 files changed

+82
-291
lines changed

2 files changed

+82
-291
lines changed

llvm/lib/Analysis/InstructionSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4906,7 +4906,7 @@ bool isSelectWithIdenticalPHI(PHINode &PN, PHINode &IdenticalPN) {
49064906
BasicBlock *DiffValBB = nullptr;
49074907
for (unsigned i = 0; i < 2; i++) {
49084908
BasicBlock *PredBB = PN.getIncomingBlock(i);
4909-
if (PN.getIncomingValueForBlock(PredBB) !=
4909+
if (PN.getIncomingValue(i) !=
49104910
IdenticalPN.getIncomingValueForBlock(PredBB)) {
49114911
DiffVals++;
49124912
DiffValBB = PredBB;

0 commit comments

Comments
 (0)