Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/LoopVectorize/no_switch.ll
; RUN: opt < %s -loop-vectorize -force-vector-width=4 -transform-warning -S 2>&1 | FileCheck %s | ; RUN: opt < %s -loop-vectorize -force-vector-width=4 -transform-warning -S 2>&1 | FileCheck %s | ||||
; RUN: opt < %s -loop-vectorize -force-vector-width=1 -transform-warning -S 2>&1 | FileCheck %s -check-prefix=NOANALYSIS | ; RUN: opt < %s -loop-vectorize -force-vector-width=1 -transform-warning -S 2>&1 | FileCheck %s -check-prefix=NOANALYSIS | ||||
; RUN: opt < %s -loop-vectorize -force-vector-width=4 -transform-warning -pass-remarks-missed='loop-vectorize' -S 2>&1 | FileCheck %s -check-prefix=MOREINFO | ; RUN: opt < %s -loop-vectorize -force-vector-width=4 -transform-warning -pass-remarks-missed='loop-vectorize' -S 2>&1 | FileCheck %s -check-prefix=MOREINFO | ||||
; CHECK: remark: source.cpp:4:5: loop not vectorized: loop contains a switch statement | ; CHECK: remark: source.cpp:4:5: loop not vectorized: loop contains a switch statement | ||||
; CHECK: warning: source.cpp:4:5: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering | ; CHECK: warning: source.cpp:4:5: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering | ||||
; NOANALYSIS-NOT: remark: {{.*}} | ; NOANALYSIS-NOT: remark: {{.*}} | ||||
; NOANALYSIS: warning: source.cpp:4:5: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering | ; NOANALYSIS: warning: source.cpp:4:5: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering | ||||
; MOREINFO: remark: source.cpp:4:5: loop not vectorized: loop contains a switch statement | ; MOREINFO: remark: source.cpp:4:5: loop not vectorized: loop contains a switch statement | ||||
; MOREINFO: remark: source.cpp:4:5: loop not vectorized (Force=true, Vector Width=4) | ; MOREINFO: remark: source.cpp:4:5: loop not vectorized (VectorizationForce=true, Vector Width=4) | ||||
; MOREINFO: warning: source.cpp:4:5: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering | ; MOREINFO: warning: source.cpp:4:5: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering | ||||
; CHECK: _Z11test_switchPii | ; CHECK: _Z11test_switchPii | ||||
; CHECK-NOT: x i32> | ; CHECK-NOT: x i32> | ||||
; CHECK: ret | ; CHECK: ret | ||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |