aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-11-04 14:43:57 +0000
committerDuncan Sands <baldrick@free.fr>2007-11-04 14:43:57 +0000
commitae5fd62a29a6eaab440ffd740b35dbc6d8018a4c (patch)
tree436b92ec7ba9208e6565d125d716e194cfdc80f8 /lib/Transforms/Utils/PromoteMemoryToRegister.cpp
parentb6aa671893136982fb23be64cc69dfc7a42aa260 (diff)
downloadexternal_llvm-ae5fd62a29a6eaab440ffd740b35dbc6d8018a4c.zip
external_llvm-ae5fd62a29a6eaab440ffd740b35dbc6d8018a4c.tar.gz
external_llvm-ae5fd62a29a6eaab440ffd740b35dbc6d8018a4c.tar.bz2
Change uses of getTypeSize to getABITypeSize, getTypeStoreSize
or getTypeSizeInBits as appropriate in ScalarReplAggregates. The right change to make was not always obvious, so it would be good to have an sroa guru review this. While there I noticed some bugs, and fixed them: (1) arrays of x86 long double have holes due to alignment padding, but this wasn't being spotted by HasStructPadding (renamed to HasPadding). The same goes for arrays of oddly sized ints. Vectors also suffer from this, in fact the problem for vectors is much worse because basic vector assumptions seem to be broken by vectors of type with alignment padding. I didn't try to fix any of these vector problems. (2) The code for extracting smaller integers from larger ones (in the "int union" case) was wrong on big-endian machines for integers with size not a multiple of 8, like i1. Probably this is impossible to hit via llvm-gcc, but I fixed it anyway while there and added a testcase. I also got rid of some trailing whitespace and changed a function name which had an obvious typo in it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
0 files changed, 0 insertions, 0 deletions