diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2012-03-08 02:14:24 +0000 | 
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-03-08 02:14:24 +0000 | 
| commit | 7dd7c08419f2eab49b1c9158e09acda200ae6ae9 (patch) | |
| tree | 987b2176cdcca2d656932992275ff6dfa552710f /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
| parent | 3f28ec28d5ac6f7f5dcebf30dc2c438817fdf733 (diff) | |
| download | llvm-7dd7c08419f2eab49b1c9158e09acda200ae6ae9.zip llvm-7dd7c08419f2eab49b1c9158e09acda200ae6ae9.tar.gz llvm-7dd7c08419f2eab49b1c9158e09acda200ae6ae9.tar.bz2 | |
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/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions
