summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMarek Olsak <marek.olsak@amd.com>2014-12-10 19:25:31 +0000
committerMarek Olsak <marek.olsak@amd.com>2014-12-10 19:25:31 +0000
commit0c05645b0f8a477c79b5cc5aa680ea2a590c72da (patch)
tree87929611b5919e7e281bf9cd46c67ed3c5cf7a7d /llvm/lib
parentdc00334dc376299d6d33829703f274523816069c (diff)
downloadbcm5719-llvm-0c05645b0f8a477c79b5cc5aa680ea2a590c72da.tar.gz
bcm5719-llvm-0c05645b0f8a477c79b5cc5aa680ea2a590c72da.zip
R600/SI: Use getTargetConstant in AdjustRegClass
llvm-svn: 223940
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/SIISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/SIISelLowering.cpp b/llvm/lib/Target/R600/SIISelLowering.cpp
index 66a9c7646f2..132aa284a3b 100644
--- a/llvm/lib/Target/R600/SIISelLowering.cpp
+++ b/llvm/lib/Target/R600/SIISelLowering.cpp
@@ -2159,9 +2159,9 @@ MachineSDNode *SITargetLowering::AdjustRegClass(MachineSDNode *N,
// The immediate offset is in dwords on SI and in bytes on VI.
if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
- Ops.push_back(DAG.getConstant(Offset->getSExtValue(), MVT::i32));
+ Ops.push_back(DAG.getTargetConstant(Offset->getSExtValue(), MVT::i32));
else
- Ops.push_back(DAG.getConstant(Offset->getSExtValue() << 2, MVT::i32));
+ Ops.push_back(DAG.getTargetConstant(Offset->getSExtValue() << 2, MVT::i32));
// Copy remaining operands so we keep any chain and glue nodes that follow
// the normal operands.
OpenPOWER on IntegriCloud