diff options
author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-08-10 14:53:25 +0000 |
---|---|---|
committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-08-10 14:53:25 +0000 |
commit | c3bcdc2f1a2c2e5476059870ba570987d15c3fe2 (patch) | |
tree | 06aa3eb99e19f8900193826a6cef56378d04a584 /polly/test/Isl/CodeGen/MemAccess/bad_alignment.ll | |
parent | 8dfe8e21e82dd907f079fc47d73c6dfc4afeb5d6 (diff) | |
download | bcm5719-llvm-c3bcdc2f1a2c2e5476059870ba570987d15c3fe2.tar.gz bcm5719-llvm-c3bcdc2f1a2c2e5476059870ba570987d15c3fe2.zip |
[JSON] Make the failure to parse a jscop file a hard error
Summary:
Before, if we fail to parse a jscop file, this will be reported as an
error and importing is aborted. However, this isn't actually strong
enough, since although the import is aborted, the scop has already been
modified and is very likely broken. Instead, make this a hard failure
and throw an LLVM error. This new behaviour requires small changes to
the tests for the legacy pass, namely using `not` to verify the error.
Further, fixed the jscop file for the
base_pointer_load_is_inst_inside_invariant_1 testcase.
Reviewed By: Meinersbur
Split out of D36578.
llvm-svn: 310599
Diffstat (limited to 'polly/test/Isl/CodeGen/MemAccess/bad_alignment.ll')
-rw-r--r-- | polly/test/Isl/CodeGen/MemAccess/bad_alignment.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/test/Isl/CodeGen/MemAccess/bad_alignment.ll b/polly/test/Isl/CodeGen/MemAccess/bad_alignment.ll index aaa59e1c8be..e6d71e2c82e 100644 --- a/polly/test/Isl/CodeGen/MemAccess/bad_alignment.ll +++ b/polly/test/Isl/CodeGen/MemAccess/bad_alignment.ll @@ -1,4 +1,4 @@ -; RUN: opt %loadPolly -polly-import-jscop -analyze 2>&1 < %s | FileCheck %s +; RUN: not opt %loadPolly -polly-import-jscop -analyze 2>&1 < %s | FileCheck %s ; ; Check that we do not allow to access elements not accessed before because the ; alignment information would become invalid. |