forked from OSchip/llvm-project
AMDGPU/GlobalISel: Reorder G_CONSTANT legality rules
The legal cases should be the first rules.
This commit is contained in:
parent
bcf5184a68
commit
7c09c173a2
|
@ -525,9 +525,9 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
|
|||
getActionDefinitionsBuilder(G_CONSTANT)
|
||||
.legalFor({S1, S32, S64, S16, GlobalPtr,
|
||||
LocalPtr, ConstantPtr, PrivatePtr, FlatPtr })
|
||||
.legalIf(isPointer(0))
|
||||
.clampScalar(0, S32, S64)
|
||||
.widenScalarToNextPow2(0)
|
||||
.legalIf(isPointer(0));
|
||||
.widenScalarToNextPow2(0);
|
||||
|
||||
getActionDefinitionsBuilder(G_FCONSTANT)
|
||||
.legalFor({S32, S64, S16})
|
||||
|
|
Loading…
Reference in New Issue