]> granicus.if.org Git - llvm/commit
Merging r342884:
authorTom Stellard <tstellar@redhat.com>
Tue, 13 Nov 2018 05:58:13 +0000 (05:58 +0000)
committerTom Stellard <tstellar@redhat.com>
Tue, 13 Nov 2018 05:58:13 +0000 (05:58 +0000)
commit2673179dd319fc771fae1edd982bf01ea91df5b2
tree970b0ee6a3ba5b03fd35e1aaea622ebed1b95d5f
parent6ef29028d44462250fa7e99ed0627e73757d1777
Merging r342884:

------------------------------------------------------------------------
r342884 | petarj | 2018-09-24 07:14:19 -0700 (Mon, 24 Sep 2018) | 12 lines

[Mips][FastISel] Fix selectBranch on icmp i1

The r337288 tried to fix result of icmp i1 when its input is not sanitized
by falling back to DagISel. While it now produces the correct result for
bit 0, the other bits can still hold arbitrary value which is not supported
by MipsFastISel branch lowering. This patch fixes the issue by falling back
to DagISel in this case.

Patch by Dragan Mladjenovic.

Differential Revision: https://reviews.llvm.org/D52045

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@346741 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsFastISel.cpp
test/CodeGen/Mips/Fast-ISel/bricmpi1.ll [new file with mode: 0644]