mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Emit warnings if vectorization is forced and fails.
This patch modifies the existing DiagnosticInfo system to create a generic base class that is inherited to produce diagnostic-based warnings. This is used by the loop vectorizer to trigger a warning when vectorization is forced and fails. Several tests have been added to verify this behavior. Reviewed by: Arnold Schwaighofer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
; CHECK: remark: source.cpp:13:5: loop not vectorized: vector width and interleave count are explicitly set to 1
|
||||
; CHECK: remark: source.cpp:19:5: loop not vectorized: cannot identify array bounds
|
||||
; CHECK: remark: source.cpp:19:5: loop not vectorized: vectorization is explicitly enabled
|
||||
; CHECK: warning: source.cpp:19:5: loop not vectorized: failed explicitly specified loop vectorization
|
||||
|
||||
; CHECK: _Z4testPii
|
||||
; CHECK-NOT: x i32>
|
||||
|
||||
Reference in New Issue
Block a user