[all-commits] [llvm/llvm-project] 0fb3eb: [RISCV] Generalize 'tryFoldSelectIntOp` to other o...
mgudim via All-commits
all-commits at lists.llvm.org
Tue Aug 1 08:28:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0fb3ebb2fcd79cdc566a71bf1a5201b34dcedd9f
https://github.com/llvm/llvm-project/commit/0fb3ebb2fcd79cdc566a71bf1a5201b34dcedd9f
Author: Mikhail Gudim <mgudim at gmail.com>
Date: 2023-08-01 (Tue, 01 Aug 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/condbinops.ll
M llvm/test/CodeGen/RISCV/select.ll
M llvm/test/CodeGen/RISCV/sextw-removal.ll
Log Message:
-----------
[RISCV] Generalize 'tryFoldSelectIntOp` to other operations.
Currently, only `SUB`, `ADD`, `OR` and `XOR` are covered. This patch
adds `AND`, `SHL`, `SRA`, `SRL`.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D155344
More information about the All-commits
mailing list