summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FoldingSet.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-03-08 02:14:24 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-03-08 02:14:24 +0000
commit7dd7c08419f2eab49b1c9158e09acda200ae6ae9 (patch)
tree987b2176cdcca2d656932992275ff6dfa552710f /llvm/lib/Support/FoldingSet.cpp
parent3f28ec28d5ac6f7f5dcebf30dc2c438817fdf733 (diff)
downloadbcm5719-llvm-7dd7c08419f2eab49b1c9158e09acda200ae6ae9.tar.gz
bcm5719-llvm-7dd7c08419f2eab49b1c9158e09acda200ae6ae9.zip
Swap the operands of a select node if the false (the second) operand is 0.
For example, this pattern (select (setcc lhs, rhs, cc), true, 0) is transformed to this one: (select (setcc lhs, rhs, inverse(cc)), 0, true) This enables MipsDAGToDAGISel::ReplaceUsesWithZeroReg (added in r152280) to replace 0 with $zero. llvm-svn: 152285
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud