aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorPengcheng Wang <wangpengcheng.pp@bytedance.com>2024-07-26 15:47:47 +0800
committerGitHub <noreply@github.com>2024-07-26 15:47:47 +0800
commited4e75d5e5ada30c37c57df032378a77e6dd598e (patch)
tree10f7a3193692ae6ad5fc7454a11754a76607db36 /llvm/lib/CodeGen/ModuloSchedule.cpp
parenta82032918cd445e5750e171f57d4f3d7096c021a (diff)
downloadllvm-ed4e75d5e5ada30c37c57df032378a77e6dd598e.zip
llvm-ed4e75d5e5ada30c37c57df032378a77e6dd598e.tar.gz
llvm-ed4e75d5e5ada30c37c57df032378a77e6dd598e.tar.bz2
[CodeGen] Remove AA parameter of isSafeToMove (#100691)
This `AA` parameter is not used and for most uses they just pass a nullptr. The use of `AA` was removed since 8d0383e.
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
-rw-r--r--llvm/lib/CodeGen/ModuloSchedule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ModuloSchedule.cpp b/llvm/lib/CodeGen/ModuloSchedule.cpp
index 0f29ebe..dae0cb2 100644
--- a/llvm/lib/CodeGen/ModuloSchedule.cpp
+++ b/llvm/lib/CodeGen/ModuloSchedule.cpp
@@ -739,7 +739,7 @@ void ModuloScheduleExpander::removeDeadInstructions(MachineBasicBlock *KernelBB,
bool SawStore = false;
// Check if it's safe to remove the instruction due to side effects.
// We can, and want to, remove Phis here.
- if (!MI->isSafeToMove(nullptr, SawStore) && !MI->isPHI()) {
+ if (!MI->isSafeToMove(SawStore) && !MI->isPHI()) {
++MI;
continue;
}