summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize
diff options
context:
space:
mode:
authorAnna Thomas <anna@azul.com>2017-09-13 19:35:45 +0000
committerAnna Thomas <anna@azul.com>2017-09-13 19:35:45 +0000
commit19529f75b9e5a476c82b012cf3d6a291901fc04a (patch)
tree5128216153af30bf58d48f4d84bdfd0541973c57 /llvm/test/Transforms/LoopVectorize
parent2ba37d4b3e23fc6374b8b680a3a513f09978fc7b (diff)
downloadbcm5719-llvm-19529f75b9e5a476c82b012cf3d6a291901fc04a.tar.gz
bcm5719-llvm-19529f75b9e5a476c82b012cf3d6a291901fc04a.zip
[LV] Avoid computing the register usage for default VF. NFC
These are changes to reduce redundant computations when calculating a feasible vectorization factor: 1. early return when target has no vector registers 2. don't compute register usage for the default VF. Suggested during review for D37702. llvm-svn: 313176
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize')
-rw-r--r--llvm/test/Transforms/LoopVectorize/X86/reg-usage.ll4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/X86/reg-usage.ll b/llvm/test/Transforms/LoopVectorize/X86/reg-usage.ll
index 83974d2db80..9b276aa2bd7 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/reg-usage.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/reg-usage.ll
@@ -10,8 +10,6 @@ define i32 @foo() {
; register usage doesn't exceed 16.
;
; CHECK-LABEL: foo
-; CHECK: LV(REG): VF = 4
-; CHECK-NEXT: LV(REG): Found max usage: 4
; CHECK: LV(REG): VF = 8
; CHECK-NEXT: LV(REG): Found max usage: 7
; CHECK: LV(REG): VF = 16
@@ -48,8 +46,6 @@ define i32 @goo() {
; it will not have vector version and the vector register usage will not exceed the
; available vector register number.
; CHECK-LABEL: goo
-; CHECK: LV(REG): VF = 4
-; CHECK-NEXT: LV(REG): Found max usage: 4
; CHECK: LV(REG): VF = 8
; CHECK-NEXT: LV(REG): Found max usage: 7
; CHECK: LV(REG): VF = 16
OpenPOWER on IntegriCloud