summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2020-01-06 15:39:05 -0500
committerMatt Arsenault <arsenm2@gmail.com>2020-01-06 17:21:51 -0500
commita506efff18224a0c73db42bed8679413514c28b1 (patch)
treeaeebe4a6a97477e583623323b5077774778d8e92
parent14d25052a2902dacdd73aa1714ba1fb639c1dedd (diff)
downloadbcm5719-llvm-a506efff18224a0c73db42bed8679413514c28b1.tar.gz
bcm5719-llvm-a506efff18224a0c73db42bed8679413514c28b1.zip
AMDGPU: Use ImmLeaf
This solves one GlobalISel importer error, but the pattern still fails for another reason.
-rw-r--r--llvm/lib/Target/AMDGPU/SIInstrInfo.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.td b/llvm/lib/Target/AMDGPU/SIInstrInfo.td
index 88898b2f409..247e3c66be0 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.td
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.td
@@ -775,8 +775,8 @@ def NegSubInlineConst16 : ImmLeaf<i16, [{
return Imm < -16 && Imm >= -64;
}], NegateImm>;
-def ShiftAmt32Imm : PatLeaf <(imm), [{
- return N->getZExtValue() < 32;
+def ShiftAmt32Imm : ImmLeaf <i32, [{
+ return Imm < 32;
}]>;
def getNegV2I16Imm : SDNodeXForm<build_vector, [{
OpenPOWER on IntegriCloud