[PATCH] D80658: [InstCombine] enhance vector demanded elements for select condition operand

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 13:03:01 PDT 2020


spatel created this revision.
spatel added reviewers: lebedev.ri, efriedma, nlopes, nikic, RKSimon, craig.topper.
Herald added subscribers: hiraditya, kristof.beyls, mcrosier.
Herald added a project: LLVM.

This is part of reducing IR in PR42755:
https://bugs.llvm.org/show_bug.cgi?id=42755

If we can determine that both arms of a given element of a vector select are the same value, then the select's condition operand is not demanded at that element.

Alive2 examples based on the regression tests:
http://volta.cs.utah.edu:8080/z/2PCSs2
http://volta.cs.utah.edu:8080/z/s4hWra
http://volta.cs.utah.edu:8080/z/Jgexop


https://reviews.llvm.org/D80658

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  llvm/test/Transforms/InstCombine/vec_demanded_elts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80658.266626.patch
Type: text/x-patch
Size: 6232 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200527/e5af248e/attachment.bin>


More information about the llvm-commits mailing list