summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize
diff options
context:
space:
mode:
authorMatthew Simpson <mssimpso@codeaurora.org>2016-10-28 14:27:45 +0000
committerMatthew Simpson <mssimpso@codeaurora.org>2016-10-28 14:27:45 +0000
commit9b6755362bc24b685482eb548f956e552a9a6b31 (patch)
tree57caf6a4380548acd2c8f6326c718d7ad16f6cbc /llvm/test/Transforms/LoopVectorize
parenta2a677c54221f48136b7f3afde743ad0ff26f8e5 (diff)
downloadbcm5719-llvm-9b6755362bc24b685482eb548f956e552a9a6b31.tar.gz
bcm5719-llvm-9b6755362bc24b685482eb548f956e552a9a6b31.zip
[LV] Correct misleading comments in test (NFC)
llvm-svn: 285402
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize')
-rw-r--r--llvm/test/Transforms/LoopVectorize/AArch64/predication_costs.ll14
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/predication_costs.ll b/llvm/test/Transforms/LoopVectorize/AArch64/predication_costs.ll
index 8307a962b13..6b3a5b63042 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/predication_costs.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/predication_costs.ll
@@ -15,10 +15,8 @@ target triple = "aarch64--linux-gnu"
; instruction. If we assume the block probability is 50%, we compute the cost
; as:
;
-; Cost for vector lane zero:
-; (udiv(1) + 2 * extractelement(0) + insertelement(0)) / 2 = 0
-; Cost for vector lane one:
-; (udiv(1) + 2 * extractelement(3) + insertelement(3)) / 2 = 5
+; Cost of udiv:
+; (udiv(2) + extractelement(6) + insertelement(3)) / 2 = 5
;
; CHECK: Found an estimated cost of 5 for VF 2 For instruction: %tmp4 = udiv i32 %tmp2, %tmp3
; CHECK: Scalarizing and predicating: %tmp4 = udiv i32 %tmp2, %tmp3
@@ -58,10 +56,8 @@ for.end:
; instruction. If we assume the block probability is 50%, we compute the cost
; as:
;
-; Cost for vector lane zero:
-; (store(2) + 2 * extractelement(0)) / 2 = 1
-; Cost for vector lane one:
-; (store(2) + 2 * extractelement(3)) / 2 = 4
+; Cost of store:
+; (store(4) + extractelement(6)) / 2 = 5
;
; CHECK: Found an estimated cost of 5 for VF 2 For instruction: store i32 %tmp2, i32* %tmp0, align 4
; CHECK: Scalarizing and predicating: store i32 %tmp2, i32* %tmp0, align 4
@@ -74,10 +70,10 @@ for.body:
%i = phi i64 [ 0, %entry ], [ %i.next, %for.inc ]
%tmp0 = getelementptr inbounds i32, i32* %a, i64 %i
%tmp1 = load i32, i32* %tmp0, align 4
+ %tmp2 = add nsw i32 %tmp1, %x
br i1 %c, label %if.then, label %for.inc
if.then:
- %tmp2 = add nsw i32 %tmp1, %x
store i32 %tmp2, i32* %tmp0, align 4
br label %for.inc
OpenPOWER on IntegriCloud