summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-01-06 19:38:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-01-06 19:38:29 +0000
commit166a4e6caab65844a763fb3fd80fe4d95bafe508 (patch)
tree465461d97454187702d588a3be8d5a98156f9186 /clang/lib/CodeGen/CodeGenModule.cpp
parent9a2073c03512ea0cbc009b886374d0cf245bb96f (diff)
downloadbcm5719-llvm-166a4e6caab65844a763fb3fd80fe4d95bafe508.tar.gz
bcm5719-llvm-166a4e6caab65844a763fb3fd80fe4d95bafe508.zip
Teach dag combine to fold the following transformation more aggressively:
(OP (trunc x), (trunc y)) -> (trunc (OP x, y)) Unfortunately this simple change causes dag combine to infinite looping. The problem is the shrink demanded ops optimization tend to canonicalize expressions in the opposite manner. That is badness. This patch disable those optimizations in dag combine but instead it is done as a late pass in sdisel. This also exposes some deficiencies in dag combine and x86 setcc / brcond lowering. Teach them to look pass ISD::TRUNCATE in various places. llvm-svn: 92849
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud