[MachineInstr] exclude call instruction in mayAlias
authorChen Zheng <czhengsz@cn.ibm.com>
Wed, 7 Oct 2020 04:12:21 +0000 (00:12 -0400)
committerChen Zheng <czhengsz@cn.ibm.com>
Wed, 7 Oct 2020 04:12:21 +0000 (00:12 -0400)
commited46e84c7aaffd847656ac559acb06089096ec33
treeccff4eb2915b5a853a0d3f2ed4f1229ab4c71bf5
parentf05608707c641423a4cd4d5923a44cda153ebbcb
[MachineInstr] exclude call instruction in mayAlias

we now get noAlias result for a call instruction and other
load/store/call instructions if we query mayAlias.
This is not right as call instruction is not with mayloadorstore,
but it may alter the memory.

This patch fixes this wrong alias query.

Differential Revision: https://reviews.llvm.org/D87490
llvm/lib/CodeGen/MachineInstr.cpp