commit | 67f827ce5ba1296db9051892b4a8e10920053933 | [log] [tgz] |
---|---|---|
author | Reid Spencer <rspencer@reidspencer.com> | Sat Jan 20 23:35:48 2007 +0000 |
committer | Reid Spencer <rspencer@reidspencer.com> | Sat Jan 20 23:35:48 2007 +0000 |
tree | 366cb4cb66ff1ac961809505d9e47f8108a21c01 | |
parent | 7c2924367087caa738d1c6349d04a4645c6c26fa [diff] |
Revise the store V, (cast P) -> store (cast V) -> P transform. We only want to do this if the src and destination types have the same bit width. This patch uses TargetData::getTypeSizeInBits() instead of making a special case for integer types and avoiding the transform if they don't match. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33414 91177308-0d34-0410-b5e6-96231b3b80d8