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)
commit1448d06156728712f47e5a71fac8e8edc0aba73b
tree8684c3f9dca12a812e8d4d506a6c6f72c25bc099
parenta12c674ee579685e982db008f546681a10cc49a6
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177294 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCCTRLoops.cpp
test/CodeGen/PowerPC/ctr-cleanup.ll [new file with mode: 0644]