[PATCH] D141079: [SelectionDAG] Improve constant folding in the presence of SPLAT_VECTOR

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 5 10:54:13 PST 2023


luke created this revision.
luke added reviewers: aheejin, tlively, reames, hokein, frasercrmck, paulwalker-arm.
Herald added subscribers: pmatos, asb, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: All.
luke requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In order to fix a regression in WebAssembly introduced by D139871 <https://reviews.llvm.org/D139871>, allow
BITCASTs to constant fold if their operand is a SPLAT_VECTOR of a
constant.
Additionally, also provide the knowns bits for SPLAT_VECTOR in
SimplifyDemandedVectorElts


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141079

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/WebAssembly/pr59626.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141079.486633.patch
Type: text/x-patch
Size: 4291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230105/600e0cb0/attachment.bin>


More information about the llvm-commits mailing list