[PATCH] D79572: [DAG] SimplifyMultipleUseDemandedBits - remove superfluous bitcasts

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 06:45:51 PDT 2020


RKSimon created this revision.
RKSimon added reviewers: arsenm, craig.topper, spatel, greened.
Herald added subscribers: kerbowa, dmgreen, hiraditya, tpr, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.

If the SimplifyMultipleUseDemandedBits calls BITCASTs that peek through back to the original type then we can remove the BITCASTs entirely.

I think this is a win in all cases but wanted to double check with AMDGPU/THUMB2 guys.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79572

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/AMDGPU/fshr.ll
  llvm/test/CodeGen/Thumb2/lsll0.ll
  llvm/test/CodeGen/Thumb2/mve-vld3.ll
  llvm/test/CodeGen/X86/bitcast-vector-bool.ll
  llvm/test/CodeGen/X86/div-rem-pair-recomposition-signed.ll
  llvm/test/CodeGen/X86/div-rem-pair-recomposition-unsigned.ll
  llvm/test/CodeGen/X86/shrink_vmul.ll
  llvm/test/CodeGen/X86/vec_smulo.ll
  llvm/test/CodeGen/X86/vec_umulo.ll
  llvm/test/CodeGen/X86/vector-reduce-mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79572.262638.patch
Type: text/x-patch
Size: 62962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200507/a674cb9e/attachment.bin>


More information about the llvm-commits mailing list