[SROA] Simplify some of the logic to dig out the old pointer value by
authorChandler Carruth <chandlerc@gmail.com>
Tue, 25 Feb 2014 11:08:02 +0000 (11:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 25 Feb 2014 11:08:02 +0000 (11:08 +0000)
commitb59c39e5203130a62d699b2ee623ff92c1da4383
tree1b21216229e23dbdc89e48848f2bd19c869bf48d
parent10b2920851ed4a6ea57e3ec3e9ee0215e92ec54a
[SROA] Simplify some of the logic to dig out the old pointer value by
using OldPtr more heavily. Lots of this code was written before the
rewriter had an OldPtr member setup ahead of time. There are already
asserts in place that should ensure this doesn't change any
functionality.

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