summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/UninitializedValues.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-03-15 05:13:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-03-15 05:13:13 +0000
commite4b8ac9fef8951c24f71eae49fd0956d71f0e413 (patch)
treea0d590fcf353e6bfbe1084eb2b8f4e53fa0a2804 /clang/lib/Analysis/UninitializedValues.cpp
parent880e299dcda6d8a79fd178e19a6bb44ce03e39eb (diff)
downloadbcm5719-llvm-e4b8ac9fef8951c24f71eae49fd0956d71f0e413.tar.gz
bcm5719-llvm-e4b8ac9fef8951c24f71eae49fd0956d71f0e413.zip
Add a peephole optimization to optimize pairs of bitcasts. e.g.
v2 = bitcast v1 ... v3 = bitcast v2 ... = v3 => v2 = bitcast v1 ... = v1 if v1 and v3 are of in the same register class. bitcast between i32 and fp (and others) are often not nops since they are in different register classes. These bitcast instructions are often left because they are in different basic blocks and cannot be eliminated by dag combine. rdar://9104514 llvm-svn: 127668
Diffstat (limited to 'clang/lib/Analysis/UninitializedValues.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud