diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-05-24 08:17:50 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-05-24 08:17:50 +0000 |
commit | 14000b3cea6b3a44a19b9c80c550d7a2c24b3d31 (patch) | |
tree | 7f66f2a1a54f88292157b52145da843112a5f28a /llvm/test | |
parent | 9afe57541e4194e947876617ecc993d309214b99 (diff) | |
download | bcm5719-llvm-14000b3cea6b3a44a19b9c80c550d7a2c24b3d31.tar.gz bcm5719-llvm-14000b3cea6b3a44a19b9c80c550d7a2c24b3d31.zip |
[CostModel][X86][XOP] Added XOP costmodel for BITREVERSE
Now that we have a nice fast VPPERM solution. Added framework for future intrinsic costs as well.
llvm-svn: 270537
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Analysis/CostModel/X86/bitreverse.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/test/Analysis/CostModel/X86/bitreverse.ll b/llvm/test/Analysis/CostModel/X86/bitreverse.ll index 9eb0ef2b4b5..4f04f3b0dd9 100644 --- a/llvm/test/Analysis/CostModel/X86/bitreverse.ll +++ b/llvm/test/Analysis/CostModel/X86/bitreverse.ll @@ -18,7 +18,7 @@ define i64 @var_bitreverse_i64(i64 %a) { ; SSE42: Found an estimated cost of 1 for instruction: %bitreverse ; AVX: Found an estimated cost of 1 for instruction: %bitreverse ; AVX2: Found an estimated cost of 1 for instruction: %bitreverse -; XOP: Found an estimated cost of 1 for instruction: %bitreverse +; XOP: Found an estimated cost of 3 for instruction: %bitreverse %bitreverse = call i64 @llvm.bitreverse.i64(i64 %a) ret i64 %bitreverse } @@ -29,7 +29,7 @@ define i32 @var_bitreverse_i32(i32 %a) { ; SSE42: Found an estimated cost of 1 for instruction: %bitreverse ; AVX: Found an estimated cost of 1 for instruction: %bitreverse ; AVX2: Found an estimated cost of 1 for instruction: %bitreverse -; XOP: Found an estimated cost of 1 for instruction: %bitreverse +; XOP: Found an estimated cost of 3 for instruction: %bitreverse %bitreverse = call i32 @llvm.bitreverse.i32(i32 %a) ret i32 %bitreverse } @@ -40,7 +40,7 @@ define i16 @var_bitreverse_i16(i16 %a) { ; SSE42: Found an estimated cost of 1 for instruction: %bitreverse ; AVX: Found an estimated cost of 1 for instruction: %bitreverse ; AVX2: Found an estimated cost of 1 for instruction: %bitreverse -; XOP: Found an estimated cost of 1 for instruction: %bitreverse +; XOP: Found an estimated cost of 3 for instruction: %bitreverse %bitreverse = call i16 @llvm.bitreverse.i16(i16 %a) ret i16 %bitreverse } @@ -51,7 +51,7 @@ define i8 @var_bitreverse_i8(i8 %a) { ; SSE42: Found an estimated cost of 1 for instruction: %bitreverse ; AVX: Found an estimated cost of 1 for instruction: %bitreverse ; AVX2: Found an estimated cost of 1 for instruction: %bitreverse -; XOP: Found an estimated cost of 1 for instruction: %bitreverse +; XOP: Found an estimated cost of 3 for instruction: %bitreverse %bitreverse = call i8 @llvm.bitreverse.i8(i8 %a) ret i8 %bitreverse } @@ -74,7 +74,7 @@ define <2 x i64> @var_bitreverse_v2i64(<2 x i64> %a) { ; SSE42: Found an estimated cost of 6 for instruction: %bitreverse ; AVX: Found an estimated cost of 6 for instruction: %bitreverse ; AVX2: Found an estimated cost of 6 for instruction: %bitreverse -; XOP: Found an estimated cost of 6 for instruction: %bitreverse +; XOP: Found an estimated cost of 1 for instruction: %bitreverse %bitreverse = call <2 x i64> @llvm.bitreverse.v2i64(<2 x i64> %a) ret <2 x i64> %bitreverse } @@ -85,7 +85,7 @@ define <4 x i64> @var_bitreverse_v4i64(<4 x i64> %a) { ; SSE42: Found an estimated cost of 12 for instruction: %bitreverse ; AVX: Found an estimated cost of 12 for instruction: %bitreverse ; AVX2: Found an estimated cost of 12 for instruction: %bitreverse -; XOP: Found an estimated cost of 12 for instruction: %bitreverse +; XOP: Found an estimated cost of 4 for instruction: %bitreverse %bitreverse = call <4 x i64> @llvm.bitreverse.v4i64(<4 x i64> %a) ret <4 x i64> %bitreverse } @@ -96,7 +96,7 @@ define <4 x i32> @var_bitreverse_v4i32(<4 x i32> %a) { ; SSE42: Found an estimated cost of 12 for instruction: %bitreverse ; AVX: Found an estimated cost of 12 for instruction: %bitreverse ; AVX2: Found an estimated cost of 12 for instruction: %bitreverse -; XOP: Found an estimated cost of 12 for instruction: %bitreverse +; XOP: Found an estimated cost of 1 for instruction: %bitreverse %bitreverse = call <4 x i32> @llvm.bitreverse.v4i32(<4 x i32> %a) ret <4 x i32> %bitreverse } @@ -107,7 +107,7 @@ define <8 x i32> @var_bitreverse_v8i32(<8 x i32> %a) { ; SSE42: Found an estimated cost of 24 for instruction: %bitreverse ; AVX: Found an estimated cost of 24 for instruction: %bitreverse ; AVX2: Found an estimated cost of 24 for instruction: %bitreverse -; XOP: Found an estimated cost of 24 for instruction: %bitreverse +; XOP: Found an estimated cost of 4 for instruction: %bitreverse %bitreverse = call <8 x i32> @llvm.bitreverse.v8i32(<8 x i32> %a) ret <8 x i32> %bitreverse } @@ -118,7 +118,7 @@ define <8 x i16> @var_bitreverse_v8i16(<8 x i16> %a) { ; SSE42: Found an estimated cost of 24 for instruction: %bitreverse ; AVX: Found an estimated cost of 24 for instruction: %bitreverse ; AVX2: Found an estimated cost of 24 for instruction: %bitreverse -; XOP: Found an estimated cost of 24 for instruction: %bitreverse +; XOP: Found an estimated cost of 1 for instruction: %bitreverse %bitreverse = call <8 x i16> @llvm.bitreverse.v8i16(<8 x i16> %a) ret <8 x i16> %bitreverse } @@ -129,7 +129,7 @@ define <16 x i16> @var_bitreverse_v16i16(<16 x i16> %a) { ; SSE42: Found an estimated cost of 48 for instruction: %bitreverse ; AVX: Found an estimated cost of 48 for instruction: %bitreverse ; AVX2: Found an estimated cost of 48 for instruction: %bitreverse -; XOP: Found an estimated cost of 48 for instruction: %bitreverse +; XOP: Found an estimated cost of 4 for instruction: %bitreverse %bitreverse = call <16 x i16> @llvm.bitreverse.v16i16(<16 x i16> %a) ret <16 x i16> %bitreverse } @@ -140,7 +140,7 @@ define <16 x i8> @var_bitreverse_v16i8(<16 x i8> %a) { ; SSE42: Found an estimated cost of 48 for instruction: %bitreverse ; AVX: Found an estimated cost of 48 for instruction: %bitreverse ; AVX2: Found an estimated cost of 48 for instruction: %bitreverse -; XOP: Found an estimated cost of 48 for instruction: %bitreverse +; XOP: Found an estimated cost of 1 for instruction: %bitreverse %bitreverse = call <16 x i8> @llvm.bitreverse.v16i8(<16 x i8> %a) ret <16 x i8> %bitreverse } @@ -151,7 +151,7 @@ define <32 x i8> @var_bitreverse_v32i8(<32 x i8> %a) { ; SSE42: Found an estimated cost of 96 for instruction: %bitreverse ; AVX: Found an estimated cost of 96 for instruction: %bitreverse ; AVX2: Found an estimated cost of 96 for instruction: %bitreverse -; XOP: Found an estimated cost of 96 for instruction: %bitreverse +; XOP: Found an estimated cost of 4 for instruction: %bitreverse %bitreverse = call <32 x i8> @llvm.bitreverse.v32i8(<32 x i8> %a) ret <32 x i8> %bitreverse } |