Files
llvm/test/Transforms/GVN
Alexandros Lamprineas a9702ef6e8 [GVN] Don't perform scalar PRE on GEPs
Partial Redundancy Elimination of GEPs prevents CodeGenPrepare from
sinking the addressing mode computation of memory instructions back
to its uses. The problem comes from the insertion of PHIs, which
confuse CGP and make it bail.

I've autogenerated the check lines of an existing test and added a
store instruction to demonstrate the motivation behind this change.
The store is now using the gep instead of a phi.

Differential Revision: https://reviews.llvm.org/D55009

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348496 91177308-0d34-0410-b5e6-96231b3b80d8
2018-12-06 16:11:58 +00:00
..