In combineOrCmpEqZeroToCtlzSrl, replace "getConstantOperand == 0" by "isNullConstant" to account for floating point constants.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/CodeGen/X86/lzcnt-zext-cmp.ll | ||
---|---|---|
4–7 | An opportunity to make this easier to read (as a separate patch): add a common prefix for all runs ("ALL") and rerun the script. That way it will be obvious which tests expect no transformation. |
test/CodeGen/X86/lzcnt-zext-cmp.ll | ||
---|---|---|
4–7 | Makes sense, will have a look! |
An opportunity to make this easier to read (as a separate patch): add a common prefix for all runs ("ALL") and rerun the script. That way it will be obvious which tests expect no transformation.