[PATCH] D87490: [MachineInstr] return mayAlias for not mayLoadOrStore instructions.
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 13 18:53:58 PDT 2020
shchenz updated this revision to Diff 291485.
shchenz added a comment.
explicitly check for `isCall`
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
@@ -1234,6 +1234,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.291485.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200914/36e5c0cd/attachment.bin>
More information about the llvm-commits
mailing list