[llvm-commits] [llvm] r50081 - in /llvm/trunk/tools: lto/lto.cpp lto2/LTOCodeGenerator.cpp
Owen Anderson
resistor at mac.com
Mon Apr 21 21:41:59 PDT 2008
I don't know. I modelled it on llvm-ld, where it is run just before.
--Owen
On Apr 21, 2008, at 11:10 PM, Chris Lattner wrote:
> Shouldn't this be run after gvn like opt does?
>
> -Chris
>
> On Apr 21, 2008, at 8:57 PM, Owen Anderson wrote:
>
>> Author: resistor
>> Date: Mon Apr 21 22:57:36 2008
>> New Revision: 50081
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=50081&view=rev
>> Log:
>> Add MemCpyOpt to LTO.
>>
>> Modified:
>> llvm/trunk/tools/lto/lto.cpp
>> llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
>>
>> Modified: llvm/trunk/tools/lto/lto.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/lto.cpp?rev=50081&r1=50080&r2=50081&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- llvm/trunk/tools/lto/lto.cpp (original)
>> +++ llvm/trunk/tools/lto/lto.cpp Mon Apr 21 22:57:36 2008
>> @@ -330,6 +330,7 @@
>> Passes.add(createGlobalsModRefPass()); // IP alias analysis
>>
>> Passes.add(createLICMPass()); // Hoist loop invariants
>> + Passed.add(createMemCpyOptPass()); // Remove dead memcpy's
>> Passes.add(createGVNPass()); // Remove common subexprs
>> Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
>>
>>
>> Modified: llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto2/LTOCodeGenerator.cpp?rev=50081&r1=50080&r2=50081&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- llvm/trunk/tools/lto2/LTOCodeGenerator.cpp (original)
>> +++ llvm/trunk/tools/lto2/LTOCodeGenerator.cpp Mon Apr 21 22:57:36
>> 2008
>> @@ -377,6 +377,7 @@
>> passes.add(createGlobalsModRefPass()); // IP alias analysis
>>
>> passes.add(createLICMPass()); // Hoist loop
>> invariants
>> + passes.add(createMemCpyOptPass()); // Remove dead memcpy's
>> passes.add(createGVNPass()); // Remove common
>> subexprs
>> passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080421/bae1c3b2/attachment.bin>
More information about the llvm-commits
mailing list