diff options
Diffstat (limited to 'polly/unittests/DeLICM/DeLICMTest.cpp')
-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 |