[llvm] [AMDGPU] Use correct operand order for shifts (PR #68299)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 00:36:19 PDT 2023


================
@@ -2432,10 +2432,13 @@ bool SIRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
         if (Offset == 0) {
           unsigned OpCode = IsSALU && !LiveSCC ? AMDGPU::S_LSHR_B32
                                                : AMDGPU::V_LSHRREV_B32_e64;
-          // XXX - This never happens because of emergency scavenging slot at 0?
----------------
rovka wrote:

Yep, I hit this in an OpenMP test after a [change to FixSGPRCopies](https://github.com/llvm/llvm-project/pull/66882).

https://github.com/llvm/llvm-project/pull/68299


More information about the llvm-commits mailing list