[Attributor][FIX] Also update the unit test to match expectations

This commit is contained in:
Johannes Doerfert
2022-07-22 01:23:55 -05:00
parent 24c993dab6
commit 93be9f02aa

View File

@@ -206,8 +206,9 @@ TEST_F(AttributorTestBase, AAReachabilityTest) {
// The first instruction of F9 can reach the first call.
ASSERT_TRUE(F9AA.instructionCanReach(A, F9FirstInst, F3));
// Because func10 calls the func4 after the call to func9 it is reachable.
ASSERT_TRUE(F9AA.instructionCanReach(A, F9FirstInst, F4));
// Because func10 calls the func4 after the call to func9 it is reachable but
// as it requires backwards logic we would need AA::isPotentiallyReachable.
ASSERT_FALSE(F9AA.instructionCanReach(A, F9FirstInst, F4));
}
} // namespace llvm