[PATCH] D94730: [RISCV] Add DAG combine to turn (setcc X, 1, setne) -> (setcc X, 0, seteq) if we can prove X is 0/1.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 19 11:22:52 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGce8b3937ddad: [RISCV] Add DAG combine to turn (setcc X, 1, setne) -> (setcc X, 0, seteq) if… (authored by craig.topper).

Changed prior to commit:
  https://reviews.llvm.org/D94730?vs=316799&id=317634#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94730/new/

https://reviews.llvm.org/D94730

Files:
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/double-br-fcmp.ll
  llvm/test/CodeGen/RISCV/float-br-fcmp.ll
  llvm/test/CodeGen/RISCV/half-br-fcmp.ll
  llvm/test/CodeGen/RISCV/select-and.ll
  llvm/test/CodeGen/RISCV/select-or.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94730.317634.patch
Type: text/x-patch
Size: 10811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210119/bce3b518/attachment.bin>


More information about the llvm-commits mailing list