AMDGPU/GlobalISel: Reorder G_CONSTANT legality rules

The legal cases should be the first rules.
This commit is contained in:
Matt Arsenault 2020-07-25 11:14:27 -04:00
parent bcf5184a68
commit 7c09c173a2
1 changed files with 2 additions and 2 deletions

View File

@ -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})