Rework the computation of a sub-structure natural type. There were
authorChandler Carruth <chandlerc@gmail.com>
Fri, 14 Sep 2012 11:08:31 +0000 (11:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 14 Sep 2012 11:08:31 +0000 (11:08 +0000)
commit6b547a2af560fac18f7f7c9b82cd685fee2dde10
tree013890b4010a59876eb5aa04ce57ab315e6b8a32
parent01f85f02a426617e095143f1ac2c19c2e59ee76d
Rework the computation of a sub-structure natural type. There were
pointless checks in here, bad asserts, and just confusing code. I've
also added a bit more to the comment to clarify what this function is
really trying to do as it was not obvious to Duncan when studying it.

Thanks to Duncan for helping me dig through the issue.

No real functionality changed here in practical cases, and certainly no
test case. This is just cleanup spotted by inspection.

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