diff options
Diffstat (limited to 'lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp')
| -rw-r--r-- | lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp index 8867ed689a311..a7eac080f885d 100644 --- a/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp +++ b/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp @@ -127,9 +127,9 @@ bool AMDGPUInstructionSelector::selectG_STORE(MachineInstr &I) const {            .add(I.getOperand(1))            .add(I.getOperand(0))            .addImm(0) -          .addImm(0)            .addImm(0); +    // Now that we selected an opcode, we need to constrain the register    // operands to use appropriate classes.    bool Ret = constrainSelectedInstRegOperands(*Flat, TII, TRI, RBI); @@ -393,7 +393,6 @@ bool AMDGPUInstructionSelector::selectG_LOAD(MachineInstr &I) const {                                 .add(I.getOperand(0))                                 .addReg(PtrReg)                                 .addImm(0) -                               .addImm(0)                                 .addImm(0);    bool Ret = constrainSelectedInstRegOperands(*Flat, TII, TRI, RBI);  | 
