From: Marek Olsak Date: Wed, 10 Dec 2014 19:25:31 +0000 (+0000) Subject: R600/SI: Use getTargetConstant in AdjustRegClass X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a98fd8b6409568b8f8eeccd8ccf4beb71a6c98d9;p=oota-llvm.git R600/SI: Use getTargetConstant in AdjustRegClass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223940 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp index 66a9c7646f2..132aa284a3b 100644 --- a/lib/Target/R600/SIISelLowering.cpp +++ b/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.