[GVNHoist] Don't wrongly preserve TBAA
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 21 Jul 2016 05:59:53 +0000 (05:59 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 21 Jul 2016 05:59:53 +0000 (05:59 +0000)
commit4808f2642248da849a9ec03d3b9888ea9a031ec5
tree574bf8696511977b8a0ffcd42b70935211e9ae81
parent15cf7b83d1efa80f25a8c7b52f29082f4924541a
[GVNHoist] Don't wrongly preserve TBAA

We hoisted loads/stores without taking into account which can cause
miscompiles.

llvm-svn: 276240
llvm/lib/Transforms/Scalar/GVNHoist.cpp
llvm/test/Transforms/GVN/hoist-md.ll [new file with mode: 0644]