[llvm] [AVR] Support stack realignment (PR #187129)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 06:39:44 PDT 2026


================
@@ -2586,6 +2619,37 @@ bool AVRExpandPseudo::expand<AVR::SPWRITE>(Block &MBB, BlockIt MBBI) {
   return true;
 }
 
+template <> bool AVRExpandPseudo::expand<AVR::FRMSP>(Block &MBB, BlockIt MBBI) {
+  MachineInstr &MI = *MBBI;
+  MachineFunction &MF = *MI.getMF();
----------------
arsenm wrote:

Should not get the function from the MachineInstr, especially when you have blocks 

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


More information about the llvm-commits mailing list