Note the workaround for 32 bit
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir | ||
|---|---|---|
| 76 ↗ | (On Diff #527016) | Needs some non-power-of-2 tests |
| llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir | ||
|---|---|---|
| 9 ↗ | (On Diff #527492) | I think something went wrong with the latest diff. Anyway, you need a non-power-of-2 test in-between the clamped range. That's the case which wouldn't be caught if you dropped the widenScalarToNextPow2 part |
| llvm/lib/Target/X86/X86LegalizerInfo.cpp | ||
|---|---|---|
| 105 | Add the sMax variable from D151878 instead of s64 | |
| 127 | If you're going to use legalIf, why not merge them (the plan is to get rid of the if (Subtarget.is64Bit()) if-else entirely): return Query.Types[0] == s32 || (Subtarget.is64Bit() && Query.Types[0] == s64); | |
Add the sMax variable from D151878 instead of s64