[PATCH] D58884: [DAGCombiner][X86][SystemZ][AArch64] Combine some cases of (bitcast (build_vector constants)) between legalize types and legalize dag.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 3 00:25:28 PST 2019


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added subscribers: kristof.beyls, javed.absar.
Herald added a project: LLVM.

This patch enables combining integer bitcasts of integer build vectors when the new scalar type is legal. I've avoided floating point because the implementation bitcasts float to int along the way and we would need to check the intermediate types for legality.


Repository:
  rL LLVM

https://reviews.llvm.org/D58884

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/fold-constants.ll
  test/CodeGen/SystemZ/vec-extract-01.ll
  test/CodeGen/X86/memcmp-optsize.ll
  test/CodeGen/X86/memcmp.ll
  test/CodeGen/X86/vec_insert-7.ll
  test/CodeGen/X86/vec_zero_cse.ll
  test/CodeGen/X86/vector-shift-ashr-sub128.ll
  test/CodeGen/X86/vector-shift-lshr-sub128.ll
  test/CodeGen/X86/vector-shift-shl-sub128.ll
  test/CodeGen/X86/vselect-avx.ll
  test/CodeGen/X86/widen_arith-4.ll
  test/CodeGen/X86/widen_arith-5.ll
  test/CodeGen/X86/widen_cast-1.ll
  test/CodeGen/X86/widen_shuffle-1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58884.189074.patch
Type: text/x-patch
Size: 19904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190303/0eb43453/attachment.bin>


More information about the llvm-commits mailing list