[PATCH] D68226: [X86][AVX] Push sign extensions of comparison bool results through bitops (PR42025)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 07:03:23 PDT 2019


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, lebedev.ri.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

As discussed on PR42025, with more complex boolean math we can end up with many truncations/extensions of the comparison results through each bitop.

This patch handles the cases introduced in combineBitcastvxi1 by pushing the sign extension through the AND/OR/XOR ops so its just the original SETCC ops that gets extended.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68226

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/bitcast-and-setcc-256.ll
  llvm/test/CodeGen/X86/bitcast-and-setcc-512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68226.222422.patch
Type: text/x-patch
Size: 19909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190930/a2ef08c7/attachment.bin>


More information about the llvm-commits mailing list