Legalizer optimize a pair of div / mod to a call to divrem libcall if they are
[oota-llvm.git] / lib / CodeGen / CodePlacementOpt.cpp
index 1009a1e29c58cab67ecfb955b1e014dc0768a2db..d8e06c33a68e095f3595b4a57fd73ec987e8f1c1 100644 (file)
@@ -373,7 +373,7 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges(MachineFunction &MF) {
 ///
 bool CodePlacementOpt::AlignLoops(MachineFunction &MF) {
   const Function *F = MF.getFunction();
-  if (F->getFnAttributes().hasOptimizeForSizeAttr())
+  if (F->getFnAttributes().hasAttribute(Attributes::OptimizeForSize))
     return false;
 
   unsigned Align = TLI->getPrefLoopAlignment();