1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/Transforms/SimplifyCFG/X86
Andrea Di Biagio 70c7608263 [TTI] Improved cost heuristic for cttz/ctlz calls.
This patch is a follow-up of r228826 (see code-review: D7506).

Now that SimplifyCFG uses TargetTransformInfo for cost analysis, we 
have to fix the cost heuristic for intrinsic calls to cttz/ctlz.

This patch defines method 'getIntrinsicCost' in BasicTTIImpl: now, BasicTTIImpl
queries TLI to check if a call to cttz/ctlz is cheap for the target.

Added test cases in Transforms/SimplifyCFG/X86 to verify that on x86,
SimplifyCFG only speculates a call to cttz/ctlz if it is cheap.

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

llvm-svn: 228829
2015-02-11 14:22:18 +00:00
..
lit.local.cfg
speculate-cttz-ctlz.ll [TTI] Improved cost heuristic for cttz/ctlz calls. 2015-02-11 14:22:18 +00:00
switch_to_lookup_table.ll SimplifyCFG: Omit range checks for switch lookup tables when default is unreachable 2015-01-26 19:52:34 +00:00
switch-covered-bug.ll [SimplifyCFG] fix accessing deleted PHINodes in switch-to-table conversion. 2014-08-02 23:41:54 +00:00
switch-table-bug.ll Try to fix the bots again by moving test to X86 directory. 2014-07-24 17:57:09 +00:00