]> granicus.if.org Git - llvm/commit
[NewGVN] Check that call has an access.
authorAlina Sbirlea <asbirlea@google.com>
Tue, 15 Oct 2019 17:25:36 +0000 (17:25 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 15 Oct 2019 17:25:36 +0000 (17:25 +0000)
commitb09882b09654073b8ab2de081e0d72c53938fdd5
treefc508b6c637c3e3167f1e4c399401bff3ec077cb
parentd291d3ed2c9ef9b1287a474cf4ce1c2affdb87d3
[NewGVN] Check that call has an access.

Check that a call has an attached MemoryAccess before calling
getClobbering on the instruction.
If no access is attached, the instruction does not access memory.

Resolves PR43441.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374920 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/NewGVN.cpp
test/Transforms/NewGVN/pr43441.ll [new file with mode: 0644]