projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Legalizer optimize a pair of div / mod to a call to divrem libcall if they are
[oota-llvm.git]
/
lib
/
CodeGen
/
CodePlacementOpt.cpp
diff --git
a/lib/CodeGen/CodePlacementOpt.cpp
b/lib/CodeGen/CodePlacementOpt.cpp
index c13c05e26a20e6329c15a08ac8ec44c012b85ac4..d8e06c33a68e095f3595b4a57fd73ec987e8f1c1 100644
(file)
--- a/
lib/CodeGen/CodePlacementOpt.cpp
+++ b/
lib/CodeGen/CodePlacementOpt.cpp
@@
-201,7
+201,7
@@
bool CodePlacementOpt::EliminateUnconditionalJumpsToTop(MachineFunction &MF,
// fallthrough edge.
if (!Prior->isSuccessor(End))
goto next_pred;
// fallthrough edge.
if (!Prior->isSuccessor(End))
goto next_pred;
- // Otherwise we can stop scanning and proce
de
to move the blocks.
+ // Otherwise we can stop scanning and proce
ed
to move the blocks.
break;
}
// If we hit a switch or something complicated, don't move anything
break;
}
// If we hit a switch or something complicated, don't move anything
@@
-373,7
+373,7
@@
bool CodePlacementOpt::OptimizeIntraLoopEdges(MachineFunction &MF) {
///
bool CodePlacementOpt::AlignLoops(MachineFunction &MF) {
const Function *F = MF.getFunction();
///
bool CodePlacementOpt::AlignLoops(MachineFunction &MF) {
const Function *F = MF.getFunction();
- if (F->
hasFnAttr(Attribute
::OptimizeForSize))
+ if (F->
getFnAttributes().hasAttribute(Attributes
::OptimizeForSize))
return false;
unsigned Align = TLI->getPrefLoopAlignment();
return false;
unsigned Align = TLI->getPrefLoopAlignment();