Changeset View
Changeset View
Standalone View
Standalone View
lib/CodeGen/TargetPassConfig.cpp
Show All 40 Lines | |||||
#include "llvm/Support/Threading.h" | #include "llvm/Support/Threading.h" | ||||
#include "llvm/Target/TargetMachine.h" | #include "llvm/Target/TargetMachine.h" | ||||
#include "llvm/Transforms/Scalar.h" | #include "llvm/Transforms/Scalar.h" | ||||
#include "llvm/Transforms/Utils/SymbolRewriter.h" | #include "llvm/Transforms/Utils/SymbolRewriter.h" | ||||
#include <cassert> | #include <cassert> | ||||
#include <string> | #include <string> | ||||
using namespace llvm; | using namespace llvm; | ||||
static cl::opt<bool> DisablePostRASched("disable-post-ra", cl::Hidden, | static cl::opt<bool> DisablePostRASched("disable-post-ra", cl::Hidden, | ||||
iteratee: These seem unrelated. Can you pull them out? | |||||
Not Done ReplyInline ActionsI do not understand why you want me to pull these out. They were not added by me and it is being used later on in this src. lei: I do not understand why you want me to pull these out. They were not added by me and it is… | |||||
Not Done ReplyInline ActionsSorry, I was trying to look at your original diff vs this one to see what changed. iteratee: Sorry, I was trying to look at your original diff vs this one to see what changed. | |||||
Not Done ReplyInline ActionsWhat are you talking about? I see no changes here. hfinkel: What are you talking about? I see no changes here. | |||||
Not Done ReplyInline ActionsIf you compare diff 4 to diff 5 it makes it look like EnableIPRA got added in diff 5. sfertile: If you compare diff 4 to diff 5 it makes it look like EnableIPRA got added in diff 5. | |||||
cl::desc("Disable Post Regalloc Scheduler")); | cl::desc("Disable Post Regalloc Scheduler")); | ||||
static cl::opt<bool> DisableBranchFold("disable-branch-fold", cl::Hidden, | static cl::opt<bool> DisableBranchFold("disable-branch-fold", cl::Hidden, | ||||
cl::desc("Disable branch folding")); | cl::desc("Disable branch folding")); | ||||
static cl::opt<bool> DisableTailDuplicate("disable-tail-duplicate", cl::Hidden, | static cl::opt<bool> DisableTailDuplicate("disable-tail-duplicate", cl::Hidden, | ||||
cl::desc("Disable tail duplication")); | cl::desc("Disable tail duplication")); | ||||
static cl::opt<bool> DisableEarlyTailDup("disable-early-taildup", cl::Hidden, | static cl::opt<bool> DisableEarlyTailDup("disable-early-taildup", cl::Hidden, | ||||
cl::desc("Disable pre-register allocation tail duplication")); | cl::desc("Disable pre-register allocation tail duplication")); | ||||
static cl::opt<bool> DisableBlockPlacement("disable-block-placement", | static cl::opt<bool> DisableBlockPlacement("disable-block-placement", | ||||
▲ Show 20 Lines • Show All 844 Lines • ▼ Show 20 Lines | void TargetPassConfig::addMachineSSAOptimization() { | ||||
// Allow targets to insert passes that improve instruction level parallelism, | // Allow targets to insert passes that improve instruction level parallelism, | ||||
// like if-conversion. Such passes will typically need dominator trees and | // like if-conversion. Such passes will typically need dominator trees and | ||||
// loop info, just like LICM and CSE below. | // loop info, just like LICM and CSE below. | ||||
addILPOpts(); | addILPOpts(); | ||||
addPass(&MachineLICMID, false); | addPass(&MachineLICMID, false); | ||||
addPass(&MachineCSEID, false); | addPass(&MachineCSEID, false); | ||||
// Coalesce basic blocks with the same branch condition | |||||
addPass(&BranchCoalescingID); | |||||
addPass(&MachineSinkingID); | addPass(&MachineSinkingID); | ||||
Not Done ReplyInline ActionsYou don't need this because of the skipFunction query in the pass. echristo: You don't need this because of the skipFunction query in the pass. | |||||
addPass(&PeepholeOptimizerID); | addPass(&PeepholeOptimizerID); | ||||
// Clean-up the dead code that may have been generated by peephole | // Clean-up the dead code that may have been generated by peephole | ||||
// rewriting. | // rewriting. | ||||
addPass(&DeadMachineInstructionElimID); | addPass(&DeadMachineInstructionElimID); | ||||
} | } | ||||
//===---------------------------------------------------------------------===// | //===---------------------------------------------------------------------===// | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |
These seem unrelated. Can you pull them out?