[PATCH] D152147: [RISCV] Fold binary op into select if profitable.
Mikhail Gudim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 15:04:35 PDT 2023
mgudim updated this revision to Diff 531527.
mgudim added a comment.
added logic for the correct order of operands when creating new opepands of select.
added test for all four possible positions of constants in select and binop.
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.531527.patch
Type: text/x-patch
Size: 5479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230614/882c0d36/attachment.bin>
More information about the llvm-commits
mailing list