Hoist a convertValue call to the two paths where it is needed.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 13:51:03 +0000 (13:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 13:51:03 +0000 (13:51 +0000)
commit5814a88ce9ebe415015b37477c841304fa8b7b1a
tree903661626b34318d92b4f88fb1db279472fc3c41
parent35150cbf4166ae8d69032d355f1e8d83b4a6eb3c
Hoist a convertValue call to the two paths where it is needed.

I noticed this while looking at r170328. We only ever do a vector
rewrite when the alloca *is* the vector type, so it's good to not paper
over bugs here by doing a convertValue that isn't needed.

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