[PATCH] D121561: [SDAG] enable binop identity constant folds for add

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 13 17:28:42 PDT 2022


LuoYuanke created this revision.
Herald added subscribers: ecnelises, pengfei, hiraditya.
Herald added a project: All.
LuoYuanke requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As noticed in D119654 <https://reviews.llvm.org/D119654>, by adding the masked intrinsics results together
we can end up with the selects being canonicalized away from the
intrinsic - this isn't what we want to test here so replace with a
insertvalue chain into a aggregate instead to retain all the results.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121561

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/avx512vbmi2vl-intrinsics-upgrade.ll
  llvm/test/CodeGen/X86/avx512vbmi2vl-intrinsics.ll
  llvm/test/CodeGen/X86/vector-bo-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121561.414966.patch
Type: text/x-patch
Size: 56070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220314/2ae326b6/attachment.bin>


More information about the llvm-commits mailing list