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 | a5eeb9da054bd76b38e18bedb9015bbaf20605e0 (patch) | |
tree | fb84e5619e001ec07011c68af554f0eacd9b36aa /lib/Target/Mips/MipsInstrFormats.td | |
parent | 888497d8a2927ddab38667d54d574c3cadeef1e5 (diff) | |
download | external_llvm-a5eeb9da054bd76b38e18bedb9015bbaf20605e0.zip external_llvm-a5eeb9da054bd76b38e18bedb9015bbaf20605e0.tar.gz external_llvm-a5eeb9da054bd76b38e18bedb9015bbaf20605e0.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFormats.td')
0 files changed, 0 insertions, 0 deletions