[llvm] r330606 - StackSlotColoring: Fix missing skipFunction check
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 23 08:51:21 PDT 2018
Author: arsenm
Date: Mon Apr 23 08:51:21 2018
New Revision: 330606
URL: http://llvm.org/viewvc/llvm-project?rev=330606&view=rev
Log:
StackSlotColoring: Fix missing skipFunction check
Modified:
llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
Modified: llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackSlotColoring.cpp?rev=330606&r1=330605&r2=330606&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackSlotColoring.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackSlotColoring.cpp Mon Apr 23 08:51:21 2018
@@ -455,6 +455,9 @@ bool StackSlotColoring::runOnMachineFunc
<< "********** Function: " << MF.getName() << '\n';
});
+ if (skipFunction(MF.getFunction()))
+ return false;
+
MFI = &MF.getFrameInfo();
TII = MF.getSubtarget().getInstrInfo();
LS = &getAnalysis<LiveStacks>();
More information about the llvm-commits
mailing list