mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Run code placement optimization for targets that want it (arm and x86 for now).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -104,6 +104,9 @@ FunctionPass *llvm::createCodePlacementOptPass() {
|
||||
/// jcc <cond> C, [exit]
|
||||
///
|
||||
bool CodePlacementOpt::OptimizeIntraLoopEdges() {
|
||||
if (!TLI->shouldOptimizeCodePlacement())
|
||||
return false;
|
||||
|
||||
bool Changed = false;
|
||||
for (unsigned i = 0, e = UncondJmpMBBs.size(); i != e; ++i) {
|
||||
MachineBasicBlock *MBB = UncondJmpMBBs[i].first;
|
||||
|
Reference in New Issue
Block a user