[PATCH] D152147: [RISCV] Fold binary op into select if profitable.
Mikhail Gudim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 14 09:58:06 PDT 2023
mgudim updated this revision to Diff 540466.
mgudim added a comment.
addressed comments:
(1) Moved definitions of `ConstSelOp` and `ConstSelOpNode` lower.
(2) Added check `DAG.isSafeToSpeculativelyExecute(...)` to check if commuting `select` and `binop` is legal.
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.540466.patch
Type: text/x-patch
Size: 5585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230714/39a38e1b/attachment.bin>
More information about the llvm-commits
mailing list