diff options
| author | Pengcheng Wang <wangpengcheng.pp@bytedance.com> | 2024-07-26 15:47:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-26 15:47:47 +0800 |
| commit | ed4e75d5e5ada30c37c57df032378a77e6dd598e (patch) | |
| tree | 10f7a3193692ae6ad5fc7454a11754a76607db36 /llvm/lib/CodeGen/GlobalISel/Utils.cpp | |
| parent | a82032918cd445e5750e171f57d4f3d7096c021a (diff) | |
[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/GlobalISel/Utils.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/Utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/Utils.cpp b/llvm/lib/CodeGen/GlobalISel/Utils.cpp index c906f3a7c922..080664843aae 100644 --- a/llvm/lib/CodeGen/GlobalISel/Utils.cpp +++ b/llvm/lib/CodeGen/GlobalISel/Utils.cpp @@ -236,7 +236,7 @@ bool llvm::isTriviallyDead(const MachineInstr &MI, // If we can move an instruction, we can remove it. Otherwise, it has // a side-effect of some sort. bool SawStore = false; - if (!MI.isSafeToMove(/*AA=*/nullptr, SawStore) && !MI.isPHI()) + if (!MI.isSafeToMove(SawStore) && !MI.isPHI()) return false; // Instructions without side-effects are dead iff they only define dead vregs. |
