diff options
| author | Tim Northover <tnorthover@apple.com> | 2013-09-06 12:38:12 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2013-09-06 12:38:12 +0000 |
| commit | 950fcc0577a09afb50aeb604d41ecf5fdf1ace70 (patch) | |
| tree | 85d25d03cdf390b8dbdcec5ac476acc328d0fc90 /llvm/lib/Target/Sparc/SparcSubtarget.cpp | |
| parent | d719f5281ccec8b4b216c6fbb534ce316b74ed7e (diff) | |
| download | bcm5719-llvm-950fcc0577a09afb50aeb604d41ecf5fdf1ace70.tar.gz bcm5719-llvm-950fcc0577a09afb50aeb604d41ecf5fdf1ace70.zip | |
SelectionDAG: create correct BooleanContent constants
Occasionally DAGCombiner can spot that a SETCC operation is completely
redundant and reduce it to "all true" or "all false". If this happens to a
vector, the value produced has to take account of what a normal comparison
would have produced, which may be an all-1s bitmask.
The fix in SelectionDAG.cpp is tested, however, as far as I can see the code in
TargetLowering.cpp is possibly unreachable and almost certainly irrelevant when
triggered so there are no tests. However, I believe it's still clearly the
right change and may save someone else some hassle if it suddenly becomes
reachable. So I'm doing it anyway.
llvm-svn: 190147
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcSubtarget.cpp')
0 files changed, 0 insertions, 0 deletions

