summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-02-04 15:19:18 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-02-04 15:19:18 +0000
commit548ffa274a2c6ff82015139cef8cf4bb7a20bda9 (patch)
tree889139a20b4cf54884c051dc9e00d0f1cf27c21d /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
parentaefc30f2a4632584f0a7d1e9fc76e7add719455a (diff)
downloadbcm5719-llvm-548ffa274a2c6ff82015139cef8cf4bb7a20bda9.tar.gz
bcm5719-llvm-548ffa274a2c6ff82015139cef8cf4bb7a20bda9.zip
SelectionDAG: Teach FoldConstantArithmetic how to deal with vectors.
This required disabling a PowerPC optimization that did the following: input: x = BUILD_VECTOR <i32 16, i32 16, i32 16, i32 16> lowered to: tmp = BUILD_VECTOR <i32 8, i32 8, i32 8, i32 8> x = ADD tmp, tmp The add now gets folded immediately and we're back at the BUILD_VECTOR we started from. I don't see a way to fix this currently so I left it disabled for now. Fix some trivially foldable X86 tests too. llvm-svn: 174325
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud