[PATCH] D138185: [InstCombine] Look through bitcast if possible

Ruiling, Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 16 22:41:53 PST 2022


ruiling created this revision.
ruiling added reviewers: arsenm, foad, piotr.
Herald added subscribers: kosarev, kerbowa, hiraditya, jvesely.
Herald added a project: All.
ruiling requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

When trying to simplify instruction based on demanded vector elements,
we are able to look through bitcast that does not change number of
vector elements.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138185

Files:
  llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  llvm/test/Transforms/InstCombine/AMDGPU/demanded-vector-elts-multi-user.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138185.476014.patch
Type: text/x-patch
Size: 7674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221117/46cc005f/attachment.bin>


More information about the llvm-commits mailing list