aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Makefile
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-28 00:35:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-28 00:35:15 +0000
commit2f5d3a50b3d4206d83f7ccc4e95c3c0465d6e460 (patch)
tree6a1c962c410e68929b12e2753749314181570188 /lib/Transforms/Makefile
parent5482b98d8f6581f1900a3c890d823ca1b5150851 (diff)
downloadexternal_llvm-2f5d3a50b3d4206d83f7ccc4e95c3c0465d6e460.zip
external_llvm-2f5d3a50b3d4206d83f7ccc4e95c3c0465d6e460.tar.gz
external_llvm-2f5d3a50b3d4206d83f7ccc4e95c3c0465d6e460.tar.bz2
Added optimization that narrow load / op / store and the 'op' is a bit twiddling instruction and its second operand is an immediate. If bits that are touched by 'op' can be done with a narrower instruction, reduce the width of the load and store as well. This happens a lot with bitfield manipulation code.
e.g. orl $65536, 8(%rax) => orb $1, 10(%rax) Since narrowing is not always a win, e.g. i32 -> i16 is a loss on x86, dag combiner consults with the target before performing the optimization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Makefile')
0 files changed, 0 insertions, 0 deletions