mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-06 04:18:00 +00:00
R600/SI: Use getTargetConstant in AdjustRegClass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2159,9 +2159,9 @@ MachineSDNode *SITargetLowering::AdjustRegClass(MachineSDNode *N,
|
|||||||
|
|
||||||
// The immediate offset is in dwords on SI and in bytes on VI.
|
// The immediate offset is in dwords on SI and in bytes on VI.
|
||||||
if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
|
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
|
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
|
// Copy remaining operands so we keep any chain and glue nodes that follow
|
||||||
// the normal operands.
|
// the normal operands.
|
||||||
|
|||||||
Reference in New Issue
Block a user