We do want to allow LoadPRE to perform LICM-like transformations: we already consider...
authorOwen Anderson <resistor@mac.com>
Thu, 30 Sep 2010 20:53:04 +0000 (20:53 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 30 Sep 2010 20:53:04 +0000 (20:53 +0000)
commit722cc1f41413530e15a46eb940ce68330647ff27
tree93e4fedd8a2c8354f16daddd4e6d6640e708e4f1
parent7eb589d3f9294dbfe4d5205045bd8119a9666532
We do want to allow LoadPRE to perform LICM-like transformations: we already consider PHI nodes to be negligible for
code size (making this transform code size neutral), and it allows us to hoist values out of loops, which is always
a good thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115205 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/load-pre-licm.ll [new file with mode: 0644]