mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Added LSR as a beta pass for alpha
llvm-svn: 20407
This commit is contained in:
parent
798b18474c
commit
8fc5ba2e06
@ -26,6 +26,12 @@ namespace {
|
||||
RegisterTarget<AlphaTargetMachine> X("alpha", " Alpha (incomplete)");
|
||||
}
|
||||
|
||||
namespace llvm {
|
||||
cl::opt<bool> EnableAlphaLSR("enable-lsr-for-alpha",
|
||||
cl::desc("Enable LSR for Alpha (beta option!)"),
|
||||
cl::Hidden);
|
||||
}
|
||||
|
||||
unsigned AlphaTargetMachine::getModuleMatchQuality(const Module &M) {
|
||||
// We strongly match "alpha*".
|
||||
std::string TT = M.getTargetTriple();
|
||||
@ -54,6 +60,9 @@ AlphaTargetMachine::AlphaTargetMachine( const Module &M, IntrinsicLowering *IL)
|
||||
bool AlphaTargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||
std::ostream &Out) {
|
||||
|
||||
if (EnableAlphaLSR)
|
||||
PM.add(createLoopStrengthReducePass());
|
||||
|
||||
// FIXME: Implement efficient support for garbage collection intrinsics.
|
||||
PM.add(createLowerGCPass());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user