We already do this for SelectionDAG, but we're missing it here.
Noticed while re-triaging PR21929
Paths
| Differential D122340
[InstCombine] SimplifyDemandedUseBits - remove ashr node if we only demand known sign bits ClosedPublic Authored by RKSimon on Mar 23 2022, 12:16 PM.
Details Summary We already do this for SelectionDAG, but we're missing it here. Noticed while re-triaging PR21929
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 25 2022, 8:00 AM This revision was landed with ongoing or failed builds.Mar 25 2022, 8:40 AM Closed by commit rG6a094a626469: [InstCombine] SimplifyDemandedUseBits - remove ashr node if we only demand… (authored by RKSimon). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 418239 llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/ashr-demand.ll
|