[PATCH] D83311: [CodeMoverUtils] Add optional data dependence checks using MSSA
Bardia Mahjour via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 11:17:40 PDT 2020
bmahjour added inline comments.
================
Comment at: llvm/unittests/Transforms/Utils/CodeMoverUtilsTest.cpp:582
+ EXPECT_TRUE(isSafeToMoveBefore(*LI2, *LI1, DT, &PDT, &DI, &MSSAU));
+ EXPECT_TRUE(isSafeToMoveBefore(*LI2, *LI1, DT, &PDT, nullptr, &MSSAU));
});
----------------
Please also add a check to make sure independent memory load/stores can be moved passed each other. For example, `%load2` should be able to move before the store to B.
store i32 %load1, i32* %arrayidx_B, align 4
%load2 = load i32, i32* %arrayidx_A, align 4
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83311/new/
https://reviews.llvm.org/D83311
More information about the llvm-commits
mailing list