[PATCH] D29605: [lanai] Avoid unnecessary AND'ing for brcond.

Jacques Pienaar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 13:47:35 PST 2017


jpienaar created this revision.

i32 output from SETCC is 0 or 1, but the backend was inserting an explicit and with 0x1 when output of SETCC's were combined and consumed by brcond. Instead, if all the operands are bitwise binary operations/selects of SETCC outputs then avoid the additional and.


https://reviews.llvm.org/D29605

Files:
  lib/Target/Lanai/LanaiISelLowering.cpp
  lib/Target/Lanai/LanaiISelLowering.h
  test/CodeGen/Lanai/masking_setccs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29605.87298.patch
Type: text/x-patch
Size: 4842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170206/19b6d2a9/attachment.bin>


More information about the llvm-commits mailing list