Skip to content

Commit 2c6c523

Browse files
jhananitsys_zuul
authored andcommitted
Fixed a bug which was considering select instruction that cannot be
constant folded in FindInterestingConstant pass. Change-Id: Ie2700dad0284688fa3d2fe1ac8062b6d0dea4664
1 parent 887564a commit 2c6c523

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

IGC/Compiler/FindInterestingConstants.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ bool FindInterestingConstants::FoldsToConst(Instruction* inst, Instruction* use,
7777
if (selInst->getOperand(0) == inst)
7878
return true;
7979
}
80-
else
81-
return false;
80+
return false;
8281
}
8382
}
8483
propagate = true;

0 commit comments

Comments
 (0)