[PATCH] D75624: [DAG] Combine fshl/fshr(load1,load0,c) if we have consecutive loads

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 11:47:56 PST 2020


efriedma added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:8271
+          (LHS->hasOneUse() || RHS->hasOneUse()) && ISD::isNON_EXTLoad(RHS)) {
+        if (DAG.areNonVolatileConsecutiveLoads(LHS, RHS, BitWidth / 8, 1)) {
+          SDLoc DL(RHS);
----------------
Do you need to check whether unaligned loads are supported for the given type?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75624





More information about the llvm-commits mailing list