[PATCH] D122070: [SDAG] enable binop identity constant folds for shifts

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 19 08:22:34 PDT 2022


RKSimon created this revision.
RKSimon added reviewers: LuoYuanke, spatel, pengfei, craig.topper.
Herald added subscribers: ecnelises, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.

Add shl/srl/sra to the list of ops that we canonicalize with a select to expose an identity merge


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122070

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122070.416701.patch
Type: text/x-patch
Size: 6219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220319/a1e6a4e9/attachment.bin>


More information about the llvm-commits mailing list