This matches what we do in IR. For the RISC-V test case, this allows
us to use -8 for the AND mask instead of materializing a constant in a register.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D127335
[SelectionDAG] Teach computeKnownBits that a nsw self multiply produce a positive value. ClosedPublic Authored by craig.topper on Jun 8 2022, 12:29 PM.
Details Summary This matches what we do in IR. For the RISC-V test case, this allows
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 8 2022, 12:41 PM This revision was landed with ongoing or failed builds.Jun 8 2022, 2:56 PM Closed by commit rG4bcfc418464b: [SelectionDAG] Teach computeKnownBits that a nsw self multiply produce a… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 435348 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/RISCV/rv64i-demanded-bits.ll
llvm/test/CodeGen/Thumb2/mve-vqdmulh-minmax.ll
|
typo: convert