[PATCH] D152147: [RISCV] Fold binary op into select if profitable.
Mikhail Gudim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 14:24:33 PDT 2023
mgudim updated this revision to Diff 538821.
mgudim added a comment.
(1) Added a check if `FoldConstantArithmetic` returns null.
(2) Fixed the incorrect use of `ArrayRef`. This was causing a bug, which is not visible when compiled in `Debug` mode.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152147/new/
https://reviews.llvm.org/D152147
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/fold-binop-into-select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152147.538821.patch
Type: text/x-patch
Size: 5536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230710/f5dfa8b5/attachment.bin>
More information about the llvm-commits
mailing list