diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-03-31 13:32:32 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-03-31 13:32:32 +0000 |
commit | 8c4fd2bdebac385bf935e51c69b3619d836a9c4f (patch) | |
tree | 4244cdda57f03b4c2dc0dc25a5b179c6db2cc329 /llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp | |
parent | 261d62c8625fa6ffc0044284f0874ec720dd4f9a (diff) | |
download | bcm5719-llvm-8c4fd2bdebac385bf935e51c69b3619d836a9c4f.tar.gz bcm5719-llvm-8c4fd2bdebac385bf935e51c69b3619d836a9c4f.zip |
Revert 233694. Weak SVN-fu.
llvm-svn: 233695
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp b/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp index 06798665cb0..48b0bc8baf3 100644 --- a/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp +++ b/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp @@ -27,15 +27,11 @@ using namespace llvm; static cl:: opt<bool> DisableHardwareLoops("disable-hexagon-hwloops", - cl::Hidden, cl::desc("Disable Hardware Loops for Hexagon target")); + cl::Hidden, cl::desc("Disable Hardware Loops for Hexagon target")); static cl::opt<bool> DisableHexagonCFGOpt("disable-hexagon-cfgopt", - cl::Hidden, cl::ZeroOrMore, cl::init(false), - cl::desc("Disable Hexagon CFG Optimization")); - -static cl::opt<bool> EnableExpandCondsets("hexagon-expand-condsets", - cl::init(true), cl::Hidden, cl::ZeroOrMore, - cl::desc("Early expansion of MUX")); + cl::Hidden, cl::ZeroOrMore, cl::init(false), + cl::desc("Disable Hexagon CFG Optimization")); /// HexagonTargetMachineModule - Note that this is used on hosts that @@ -59,10 +55,6 @@ static MachineSchedRegistry SchedCustomRegistry("hexagon", "Run Hexagon's custom scheduler", createVLIWMachineSched); -namespace llvm { - FunctionPass *createHexagonExpandCondsets(); -} - /// HexagonTargetMachine ctor - Create an ILP32 architecture model. /// @@ -87,15 +79,7 @@ namespace { class HexagonPassConfig : public TargetPassConfig { public: HexagonPassConfig(HexagonTargetMachine *TM, PassManagerBase &PM) - : TargetPassConfig(TM, PM) { - bool NoOpt = (TM->getOptLevel() == CodeGenOpt::None); - if (!NoOpt) { - if (EnableExpandCondsets) { - Pass *Exp = createHexagonExpandCondsets(); - insertPass(&RegisterCoalescerID, IdentifyingPassPtr(Exp)); - } - } - } + : TargetPassConfig(TM, PM) {} HexagonTargetMachine &getHexagonTargetMachine() const { return getTM<HexagonTargetMachine>(); |