diff options
author | Michael Kruse <llvm@meinersbur.de> | 2017-04-20 19:16:39 +0000 |
---|---|---|
committer | Michael Kruse <llvm@meinersbur.de> | 2017-04-20 19:16:39 +0000 |
commit | 8431e996d323bbafda2cad67a3d6672d69e2bef8 (patch) | |
tree | f67804ab20801af5b5b135258d95f674087232e8 /polly/unittests | |
parent | b12345c04c5327f8fe4230fddac99b33e6709f4e (diff) | |
download | bcm5719-llvm-8431e996d323bbafda2cad67a3d6672d69e2bef8.tar.gz bcm5719-llvm-8431e996d323bbafda2cad67a3d6672d69e2bef8.zip |
[DeLICM] Use Known information when comparing Existing.Written and Proposed.Written.
This change only affects unit tests, but no functional changes are
expected on LLVM-IR, as no Known information is yet extracted and
consequently this functionality is only triggered through unit tests.
Differential Revision: https://reviews.llvm.org/D32027
llvm-svn: 300874
Diffstat (limited to 'polly/unittests')
-rw-r--r-- | polly/unittests/DeLICM/DeLICMTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/polly/unittests/DeLICM/DeLICMTest.cpp b/polly/unittests/DeLICM/DeLICMTest.cpp index b22070daa0a..41ab799cccd 100644 --- a/polly/unittests/DeLICM/DeLICMTest.cpp +++ b/polly/unittests/DeLICM/DeLICMTest.cpp @@ -260,5 +260,13 @@ TEST(DeLICM, isConflicting) { {"{}", nullptr, "{ Dom[0] }"})); EXPECT_FALSE(checkIsConflicting({"{}", nullptr, "{ Dom[1] }"}, {"{}", nullptr, "{ Dom[0] }"})); + + // Check written vs. written with known values. + EXPECT_FALSE(checkIsConflictingKnown({"{}", nullptr, "{ Dom[0] -> Val[] }"}, + {"{}", nullptr, "{ Dom[0] -> Val[] }"})); + EXPECT_TRUE(checkIsConflictingKnown({"{}", nullptr, "{ Dom[0] -> ValA[] }"}, + {"{}", nullptr, "{ Dom[0] -> ValB[] }"})); + EXPECT_TRUE(checkIsConflictingKnown({"{}", nullptr, "{ Dom[0] -> Val[] }"}, + {"{}", nullptr, "{ Dom[0] -> [] }"})); } } // anonymous namespace |