[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)
commit3de89f3416bfa78079136ea6566c8f82b1b64292
treef2aac7c3a405dd4d00b8f9719908e11034337781
parentd69d1aa131b4cf339bfac116e50da33a5f94b861
[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.

llvm-svn: 374920
llvm/lib/Transforms/Scalar/NewGVN.cpp
llvm/test/Transforms/NewGVN/pr43441.ll [new file with mode: 0644]