Cleanup initial-value constants in PPCCTRLoops
authorHal Finkel <hfinkel@anl.gov>
Mon, 18 Mar 2013 17:40:27 +0000 (17:40 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 18 Mar 2013 17:40:27 +0000 (17:40 +0000)
commit12337e4e7df0b6a2b03548f12f5024758811e6b1
tree81820619ff40cc7ef62390e2956de98ecaab12ac
parent88b55ead5978bc67747b3a740924270dd85b34f9
Cleanup initial-value constants in PPCCTRLoops

Because the initial-value constants had not been added to the list
of instructions considered for DCE the resulting code had redundant
constant-materialization instructions.

llvm-svn: 177294
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
llvm/test/CodeGen/PowerPC/ctr-cleanup.ll [new file with mode: 0644]