mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
LSR cleanup patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20422 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -60,8 +60,10 @@ AlphaTargetMachine::AlphaTargetMachine( const Module &M, IntrinsicLowering *IL)
|
|||||||
bool AlphaTargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
bool AlphaTargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||||
std::ostream &Out) {
|
std::ostream &Out) {
|
||||||
|
|
||||||
if (EnableAlphaLSR)
|
if (EnableAlphaLSR) {
|
||||||
PM.add(createLoopStrengthReducePass());
|
PM.add(createLoopStrengthReducePass());
|
||||||
|
PM.add(createCFGSimplificationPass());
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: Implement efficient support for garbage collection intrinsics.
|
// FIXME: Implement efficient support for garbage collection intrinsics.
|
||||||
PM.add(createLowerGCPass());
|
PM.add(createLowerGCPass());
|
||||||
|
Reference in New Issue
Block a user