[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 20:31:16 PDT 2022
craig.topper updated this revision to Diff 450218.
craig.topper added a comment.
Explicitly check the opcode of Inst in isShiftedADDWOrSUBW. This can get called with Opcode
being Instruction::Add, but the instruction being a GEP.
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.450218.patch
Type: text/x-patch
Size: 4575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220805/6da96e02/attachment.bin>
More information about the llvm-commits
mailing list