diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-21 07:51:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-21 07:51:07 +0000 |
commit | eb60fb9c1f9abf9b5b6d714db2da440746bd3769 (patch) | |
tree | b681646dbb701cfb1e89cdb1813a6febfed9a2ce /tools/lto | |
parent | 4bda6e47e95204e6d9e7bf2b82e8099e911c722a (diff) |
Use GVN in LTO instead of GCSE+LoadVN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index ff9ba91d4e..7e0823edf1 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -330,8 +330,7 @@ LTO::optimize(Module *M, std::ostream &Out, Passes.add(createGlobalsModRefPass()); // IP alias analysis Passes.add(createLICMPass()); // Hoist loop invariants - Passes.add(createLoadValueNumberingPass()); // GVN for load instrs - Passes.add(createGCSEPass()); // Remove common subexprs + Passes.add(createGVNPass()); // Remove common subexprs Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores // Cleanup and simplify the code after the scalar optimizations. |