[llvm] 356bf5e - Stack clash: update live-ins

via llvm-commits llvm-commits at lists.llvm.org
Mon May 25 06:58:29 PDT 2020


Author: serge-sans-paille
Date: 2020-05-25T15:57:58+02:00
New Revision: 356bf5ea5d91642b7a932a368804cef6733133c2

URL: https://github.com/llvm/llvm-project/commit/356bf5ea5d91642b7a932a368804cef6733133c2
DIFF: https://github.com/llvm/llvm-project/commit/356bf5ea5d91642b7a932a368804cef6733133c2.diff

LOG: Stack clash: update live-ins

This fixes http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-debian/builds/7150

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86FrameLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index f320041b2de6..5ee7c87a42b9 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/lib/Target/X86/X86FrameLowering.cpp
@@ -705,7 +705,6 @@ void X86FrameLowering::emitStackProbeInlineGenericLoop(
       .setMIFlag(MachineInstr::FrameSetup);
   testMBB->addSuccessor(testMBB);
   testMBB->addSuccessor(tailMBB);
-  testMBB->addLiveIn(FinalStackPtr);
 
   // BB management
   tailMBB->splice(tailMBB->end(), &MBB, MBBI, MBB.end());
@@ -719,6 +718,10 @@ void X86FrameLowering::emitStackProbeInlineGenericLoop(
         .addReg(FinalStackPtr)
         .setMIFlag(MachineInstr::FrameSetup);
   }
+
+  // Update Live In information
+  recomputeLiveIns(*testMBB);
+  recomputeLiveIns(*tailMBB);
 }
 
 void X86FrameLowering::emitStackProbeInlineWindowsCoreCLR64(


        


More information about the llvm-commits mailing list