[MemorySSA] Create query after checking if instruction is a fence.
authorAlina Sbirlea <asbirlea@google.com>
Tue, 13 Nov 2018 21:12:49 +0000 (21:12 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 13 Nov 2018 21:12:49 +0000 (21:12 +0000)
commitb4d088d090a035ec174ded571e6a7058adf11fef
tree6d5a3dc1b4dd666e3d53242e40f06f04ca89543c
parent807a8bae933a8798a40aed254dd53f533d8cee16
[MemorySSA] Create query after checking if instruction is a fence.

The alternative is checking if I is a fence in the Query constructor, so
as to not attempt to get a non-existent MemoryLocation.

llvm-svn: 346798
llvm/lib/Analysis/MemorySSA.cpp