In combineOrCmpEqZeroToCtlzSrl, replace "getConstantOperand == 0" by "isNullConstant" to account for floating point constants.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/CodeGen/X86/lzcnt-zext-cmp.ll | ||
---|---|---|
4–7 ↗ | (On Diff #87785) | 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 ↗ | (On Diff #87785) | Makes sense, will have a look! |