================
@@ -1651,7 +1682,10 @@ RISCVFrameLowering::getFrameIndexReference(const 
MachineFunction &MF, int FI,
     MaxCSFI = std::max(CSI.front().getFrameIdx(), CSI.back().getFrameIdx());
   }
 
-  if (FI >= MinCSFI && FI <= MaxCSFI) {
+  bool IsInterruptCSR = RVFI->isSiFivePreemptibleInterrupt(MF) &&
----------------
lenary wrote:

This sounds... bad. I guess no one was hitting that in their interrupt 
handlers, and instead pushing complexity like large or over-aligned stack 
frames at least a function call away.

https://github.com/llvm/llvm-project/pull/221318
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to