Skip to content

Commit 5b73371

Browse files
srividyakarumurisys_zuul
authored andcommitted
Handling the math intrinsics in FindInterestingConstants pass
Change-Id: I75f6b48f761c5978297d1a3c0320d5c28e3d113e
1 parent 26e95a5 commit 5b73371

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

IGC/Compiler/FindInterestingConstants.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ bool FindInterestingConstants::FoldsToConst(Instruction* inst, Instruction* use,
8686
visitedForFolding.insert(pIntr);
8787
return false;
8888
}
89-
return false;
89+
if (!IsMathIntrinsic(GetOpCode(use)))
90+
{
91+
return false;
92+
}
9093
}
9194
for (auto& U : use->operands())
9295
{

0 commit comments

Comments
 (0)