================
@@ -3239,26 +3239,14 @@ bool
SIRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
: RS->scavengeRegisterBackwards(AMDGPU::SReg_32_XM0RegClass,
MI, false, 0, !UseSGPR);
- if ((!TmpSReg && !FrameReg) || (!TmpReg && !UseSGPR)) {
+ if (!TmpSReg || (!TmpReg && !UseSGPR)) {
+ assert(!FrameReg && "There is a frame register!");
----------------
shiltian wrote:
```suggestion
assert(!FrameReg && "there is a frame register!");
```
https://github.com/llvm/llvm-project/pull/208624
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits