StackSlotColoring: Fix missing skipFunction check
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Apr 2018 15:51:21 +0000 (15:51 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Apr 2018 15:51:21 +0000 (15:51 +0000)
llvm-svn: 330606

llvm/lib/CodeGen/StackSlotColoring.cpp

index 27726c3..1d0aa68 100644 (file)
@@ -455,6 +455,9 @@ bool StackSlotColoring::runOnMachineFunction(MachineFunction &MF) {
              << "********** Function: " << MF.getName() << '\n';
     });
 
+  if (skipFunction(MF.getFunction()))
+    return false;
+
   MFI = &MF.getFrameInfo();
   TII = MF.getSubtarget().getInstrInfo();
   LS = &getAnalysis<LiveStacks>();