OSDN Git Service

[MSSA] Allow unittests to use BasicAA when building.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 3 Oct 2016 23:12:35 +0000 (23:12 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 3 Oct 2016 23:12:35 +0000 (23:12 +0000)
commite602ff91e3ba33d00c39a1e37c83b6c0682da7e5
treeb07c65c50203b92144c04762329a767b2a173d47
parent3f22f87fb522a96395699a9cb6d7d7eb73724921
[MSSA] Allow unittests to use BasicAA when building.

We now build MemorySSA in its ctor, instead of waiting until the user
calls MemorySSA::getWalker. This silently changed our unittests, since
we add BasicAA to AAResults *after* constructing MemorySSA (...but
before calling MemorySSA::getWalker).

None of them broke because we do most of our "did this get optimized
correctly?" tests in .ll files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283158 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Transforms/Utils/MemorySSA.cpp