[PATCH] D131503: [DAGCombine] Combine signext_inreg of extract-extend

Peter Waller via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 07:43:28 PDT 2022


peterwaller-arm marked 2 inline comments as done.
peterwaller-arm added a comment.

I will submit first thing next week unless there are further comments.



================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:6377
+    if (N1C->getAPIntValue().isMask(ScalarWidth) &&
+        (!LegalOperations || TLI.isOperationLegal(ISD::ZERO_EXTEND, ExtVT))) {
       //    (and (extract_subvector (zext|anyext|sext v) _) iN_mask)
----------------
RKSimon wrote:
> Please commit this separately referencing the phab patch where it was added (D130782?)
Done, and a backport requested in https://github.com/llvm/llvm-project/issues/57089 since this case went into LLVM-15-rc3.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131503/new/

https://reviews.llvm.org/D131503



More information about the llvm-commits mailing list