[llvm] [X86][GlobalISel] Add instruction selection for G_SELECT (PR #70753)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 4 08:45:21 PDT 2023
================
@@ -521,11 +521,10 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
// todo: vectors and address spaces
getActionDefinitionsBuilder(G_SELECT)
- .legalFor({{s8, s32}, {s16, s32}, {s32, s32}, {s64, s32},
- {p0, s32}})
- .widenScalarToNextPow2(0, /*Min=*/8)
- .clampScalar(0, s8, sMaxScalar)
- .clampScalar(1, s32, s32);
+ .legalFor({{s8, s32}, {s16, s32}, {s32, s32}, {s64, s32}, {p0, s32}})
+ .widenScalarToNextPow2(0, /*Min=*/8)
+ .clampScalar(0, s8, sMaxScalar)
+ .clampScalar(1, s32, s32);
----------------
tschuett wrote:
In that case, you add:
```
bool HasCMOV = STI.canUseCMOV();
```
to the top of the file.
https://github.com/llvm/llvm-project/pull/70753
More information about the llvm-commits
mailing list