When a set of bitmask operations, typically from a bitfield initialization, only...
authorOwen Anderson <resistor@mac.com>
Thu, 19 Aug 2010 22:15:40 +0000 (22:15 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 19 Aug 2010 22:15:40 +0000 (22:15 +0000)
commit9419cab4c360d532bb5c3e171cdc8eca400b1b53
tree4e9728bae3746d75963493388c7176a7f80a6273
parentb57326c8aab6f6089b29e324c39811d494d6fc42
When a set of bitmask operations, typically from a bitfield initialization, only modifies the low bytes of a value,
we can narrow the store to only over-write the affected bytes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111568 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
test/Transforms/InstCombine/2010-08-19-StoreNarrowing.ll [new file with mode: 0644]