mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Added LSR as a beta pass for alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20407 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c7490617a
commit
e4f161c909
@ -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