[PATCH] D87490: [MachineInstr] return mayAlias for not mayLoadOrStore instructions.
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 21:19:14 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGed46e84c7aaf: [MachineInstr] exclude call instruction in mayAlias (authored by shchenz).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87490/new/
https://reviews.llvm.org/D87490
Files:
llvm/lib/CodeGen/MachineInstr.cpp
Index: llvm/lib/CodeGen/MachineInstr.cpp
===================================================================
--- llvm/lib/CodeGen/MachineInstr.cpp
+++ llvm/lib/CodeGen/MachineInstr.cpp
@@ -1236,6 +1236,11 @@
const TargetInstrInfo *TII = MF->getSubtarget().getInstrInfo();
const MachineFrameInfo &MFI = MF->getFrameInfo();
+ // Execulde call instruction which may alter the memory but can not be handled
+ // by this function.
+ if (isCall() || Other.isCall())
+ return true;
+
// If neither instruction stores to memory, they can't alias in any
// meaningful way, even if they read from the same address.
if (!mayStore() && !Other.mayStore())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87490.296591.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201007/ad1507a9/attachment.bin>
More information about the llvm-commits
mailing list