- Use KnownBits::shl() in SimplifyDemandedBits()
- Add flags for KnownBits::shl in computeKnownBits()
Similar to e1aa91b36325
Paths
| Differential D153934
[SelectionDAG][TargetLowering]Add support for nuw/nsw on KnownBits::shl Needs RevisionPublic Authored by liaolucy on Jun 27 2023, 8:06 PM.
Details
Summary
Similar to e1aa91b36325
Diff Detail
Event TimelineComment Actions Add testcase for riscv. Herald added subscribers: wangpc, luke, frasercrmck and 21 others. · View Herald TranscriptJun 28 2023, 12:54 AM liaolucy added a child revision: D153947: [RISCV] Teach targetShrinkDemandedConstant to preserve (and X, neg).Jun 28 2023, 1:00 AM
This revision now requires changes to proceed.Aug 23 2023, 8:29 AM
Revision Contents
Diff 535270 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/RISCV/rv64i-demanded-bits.ll
|
please can you precommit this test with current trunk codegen and then rebase this patch to show the diff