[PATCH] D52045: [Mips][FastISel] Fix selectBranch on icmp i1

Dragan Mladjenovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 13 09:49:17 PDT 2018


draganm created this revision.
draganm added a reviewer: atanasyan.
Herald added subscribers: llvm-commits, jrtc27, arichardson, sdardis.

The https://reviews.llvm.org/rL337288 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 isn't supported by
MipsFastISel branch lowering. This patch fixes the issue by falling
back to DagISel in this case.


Repository:
  rL LLVM

https://reviews.llvm.org/D52045

Files:
  lib/Target/Mips/MipsFastISel.cpp
  test/CodeGen/Mips/Fast-ISel/bricmpi1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52045.165317.patch
Type: text/x-patch
Size: 5598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180913/52cf627a/attachment.bin>


More information about the llvm-commits mailing list