aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BranchFolding.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/BranchFolding.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/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index 92a03eb5..1dc2785 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -1891,7 +1891,7 @@ MachineBasicBlock::iterator findHoistingInsertPosAndDeps(MachineBasicBlock *MBB,
// Also avoid moving code above predicated instruction since it's hard to
// reason about register liveness with predicated instruction.
bool DontMoveAcrossStore = true;
- if (!PI->isSafeToMove(nullptr, DontMoveAcrossStore) || TII->isPredicated(*PI))
+ if (!PI->isSafeToMove(DontMoveAcrossStore) || TII->isPredicated(*PI))
return MBB->end();
// Find out what registers are live. Note this routine is ignoring other live
@@ -2015,7 +2015,7 @@ bool BranchFolder::HoistCommonCodeInSuccs(MachineBasicBlock *MBB) {
break;
bool DontMoveAcrossStore = true;
- if (!TIB->isSafeToMove(nullptr, DontMoveAcrossStore))
+ if (!TIB->isSafeToMove(DontMoveAcrossStore))
break;
// Remove kills from ActiveDefsSet, these registers had short live ranges.