[PATCH] D131208: [RISCV] Prevent constant hoisting for (ashr (add (shl X, 32), C<<32), 32).

Juergen Ributzka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 20:28:06 PDT 2022


ributzka added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp:42
 
+// Recognize (ashr (add (shl X, 32), C << 32), 32) which DAGCombine can turn
+// into (addw X, C). If we hoist the constant, DAGCombine can't see the pattern.
----------------
Is this DAGCombine RISCV specific or a generic combine?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131208



More information about the llvm-commits mailing list