Add local PRE to GVN. This only operates in cases where it would not increase code...
authorOwen Anderson <resistor@mac.com>
Wed, 18 Jun 2008 21:41:49 +0000 (21:41 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 18 Jun 2008 21:41:49 +0000 (21:41 +0000)
commitb230372437183b8daffcd70fe784974ddf26d21b
tree50a169998bd7a51046c94ed07cc83e10953e70ef
parente4242548976c04183a532695666803fb6a40ba06
Add local PRE to GVN.  This only operates in cases where it would not increase code size, namely when the instantiated expression
would only need to be created in one predecessor.

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