Skip to content

Commit a6ac36f

Browse files
committed
[Autobackout][FuncReg]Revert of change: 5796d4f
Don't do mad if thre are more than 1 immediate source Change-Id: Id2c31b1e1dece96790384fd050376de00083aabc
1 parent 5a82c8e commit a6ac36f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

IGC/Compiler/CISACodeGen/PatternMatchPass.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -2016,20 +2016,6 @@ namespace IGC
20162016
}
20172017
}
20182018

2019-
if (found)
2020-
{
2021-
uint8_t numConstant = 0;
2022-
for (int i = 0; i < 3; i++)
2023-
{
2024-
if (isa<Constant>(sources[i]))
2025-
numConstant++;
2026-
2027-
// Only one immediate is supported
2028-
if (numConstant > 1)
2029-
return false;
2030-
}
2031-
}
2032-
20332019
// Check integer mad profitability.
20342020
if (found && !isFpMad(I))
20352021
{

0 commit comments

Comments
 (0)