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

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 23:34:37 PDT 2022


craig.topper updated this revision to Diff 450240.
craig.topper added a comment.

Make sure all 3 instructions are in the same BB to be sure the pattern can be matched.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131208

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131208.450240.patch
Type: text/x-patch
Size: 4790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220805/8f653f78/attachment.bin>


More information about the llvm-commits mailing list