mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 02:00:03 +08:00
[unittests/DeLICM] Add test for Written vs Written.
The interpretation of multiple known ValInsts for the same element and timepoint is that these are alterntivate names for the same values, for instance a PHINode and the incoming value when knowning it was the last executed block. That means that known values do not conflict if there at least (but necessarily all) one common ValInst. This prinviple also applies to Written values. Add a test for this principle. llvm-svn: 301481
This commit is contained in:
@@ -321,5 +321,8 @@ TEST(DeLICM, isConflicting) {
|
||||
{"{}", nullptr, "{ Dom[0] -> ValB[] }"}));
|
||||
EXPECT_TRUE(checkIsConflictingKnown({"{}", nullptr, "{ Dom[0] -> Val[] }"},
|
||||
{"{}", nullptr, "{ Dom[0] -> [] }"}));
|
||||
EXPECT_FALSE(checkIsConflictingKnown(
|
||||
{"{}", nullptr, "{ Dom[0] -> Val[]}"},
|
||||
{"{}", nullptr, "{ Dom[0] -> Val[]; Dom[0] -> Phi[] }"}));
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
||||
Reference in New Issue
Block a user