OSDN Git Service

[GVN] Factor out common code [NFCI]
authorPhilip Reames <listmail@philipreames.com>
Mon, 25 Jan 2016 23:19:12 +0000 (23:19 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 25 Jan 2016 23:19:12 +0000 (23:19 +0000)
commit4d16c2e168d9a964a046ff3410d5bb9355940fee
tree533539448ffa5e8cfa3db09697e6d76d9a50593f
parent56ad20691a40f12de9f25dbffff26a12526f8600
[GVN] Factor out common code [NFCI]

We had the same code duplicated for each type of Def.  We also have the entire block duplicated between the local and non-local case, but let's start with local cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258740 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp