[CodeGenPrepare] Removed duplicate logic. SimplifyCFG already knows how to speculate...
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 13 Feb 2015 14:15:48 +0000 (14:15 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 13 Feb 2015 14:15:48 +0000 (14:15 +0000)
commit59d115311afdc3844b1b24c957110c8e661b6fed
tree2f9cdccfc4445f94625c068f630ff2e7f9318e27
parent116347e269b421f9ec197da75a796f940cdeb582
[CodeGenPrepare] Removed duplicate logic. SimplifyCFG already knows how to speculate calls to cttz/ctlz.

SimplifyCFG now knows how to speculate calls to intrinsic cttz/ctlz that are
'cheap' for the target. Therefore, some of the logic in CodeGenPrepare
that was originally added at revision 224899 can now be removed.

This patch is basically a no functional change. It removes the duplicated
logic in CodeGenPrepare and converts all the existing target specific tests
for cttz/ctlz into SimplifyCFG tests.

Differential Revision: http://reviews.llvm.org/D7608

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/CodeGen/PowerPC/cttz-ctlz-spec.ll [deleted file]
test/CodeGen/R600/cttz-ctlz.ll [deleted file]
test/CodeGen/X86/cttz-ctlz.ll [deleted file]
test/Transforms/SimplifyCFG/PowerPC/cttz-ctlz-spec.ll [new file with mode: 0644]
test/Transforms/SimplifyCFG/PowerPC/lit.local.cfg [new file with mode: 0644]
test/Transforms/SimplifyCFG/R600/cttz-ctlz.ll [new file with mode: 0644]
test/Transforms/SimplifyCFG/R600/lit.local.cfg [new file with mode: 0644]