[llvm] r279175 - Include X86CallFrameOptimization in the opt-bisect process.

Andrew Kaylor via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 18 15:49:52 PDT 2016


Author: akaylor
Date: Thu Aug 18 17:49:51 2016
New Revision: 279175

URL: http://llvm.org/viewvc/llvm-project?rev=279175&view=rev
Log:
Include X86CallFrameOptimization in the opt-bisect process.

Differential Revision: https://reviews.llvm.org/D23683



Modified:
    llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp

Modified: llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp?rev=279175&r1=279174&r2=279175&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp Thu Aug 18 17:49:51 2016
@@ -225,7 +225,7 @@ bool X86CallFrameOptimization::runOnMach
   assert(isPowerOf2_32(SlotSize) && "Expect power of 2 stack slot size");
   Log2SlotSize = Log2_32(SlotSize);
 
-  if (!isLegal(MF))
+  if (skipFunction(*MF.getFunction()) || !isLegal(MF))
     return false;
 
   unsigned FrameSetupOpcode = TII->getCallFrameSetupOpcode();




More information about the llvm-commits mailing list