We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3912307 commit 5796d4fCopy full SHA for 5796d4f
IGC/Compiler/CISACodeGen/PatternMatchPass.cpp
@@ -2016,6 +2016,20 @@ namespace IGC
2016
}
2017
2018
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
2033
// Check integer mad profitability.
2034
if (found && !isFpMad(I))
2035
{
0 commit comments