Currently, only SUB, ADD, OR and XOR are covered. This patch
adds AND, SHL, SRA, SRL.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
| llvm/test/CodeGen/RISCV/fold-select-into-binop.ll | ||
|---|---|---|
| 1 | The test should be commited separately first I guess. I'll do that soon. | |
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 12300 | The identity value for fadd is -0.0. | |
Comment Actions
https://reviews.llvm.org/D155481
Should I commit that test first? The effect of this patch is seen on the existing tests already.
Drop the isFloatingPoint check?