diff options
Diffstat (limited to 'llvm/lib/Target/R600/SIISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/R600/SIISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SIISelLowering.cpp b/llvm/lib/Target/R600/SIISelLowering.cpp index b5054d17049..629a42cdfbd 100644 --- a/llvm/lib/Target/R600/SIISelLowering.cpp +++ b/llvm/lib/Target/R600/SIISelLowering.cpp @@ -1641,7 +1641,8 @@ void SITargetLowering::ensureSRegLimit(SelectionDAG &DAG, SDValue &Operand, SDNode *Node; // We can't use COPY_TO_REGCLASS with FrameIndex arguments. - if (isa<FrameIndexSDNode>(Operand)) { + if (isa<FrameIndexSDNode>(Operand) || + isa<GlobalAddressSDNode>(Operand)) { unsigned Opcode = Operand.getValueType() == MVT::i32 ? AMDGPU::S_MOV_B32 : AMDGPU::S_MOV_B64; Node = DAG.getMachineNode(Opcode, SDLoc(), Operand.getValueType(), |

