diff options
Diffstat (limited to 'lib/Target/AMDGPU/SIShrinkInstructions.cpp')
| -rw-r--r-- | lib/Target/AMDGPU/SIShrinkInstructions.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/lib/Target/AMDGPU/SIShrinkInstructions.cpp index c5f121757e62..96a18544f02a 100644 --- a/lib/Target/AMDGPU/SIShrinkInstructions.cpp +++ b/lib/Target/AMDGPU/SIShrinkInstructions.cpp @@ -92,6 +92,8 @@ static bool canShrink(MachineInstr &MI, const SIInstrInfo *TII,        case AMDGPU::V_ADDC_U32_e64:        case AMDGPU::V_SUBB_U32_e64: +        if (TII->getNamedOperand(MI, AMDGPU::OpName::src1)->isImm()) +          return false;          // Additional verification is needed for sdst/src2.          return true;  | 
