[PATCH] D77804: [DAG] Enable ISD::SHL/SRL SimplifyMultipleUseDemandedBits handling (WIP)

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 12:47:49 PST 2021


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rv64Zbp.ll:1433
+; RV64IB-NEXT:    or a0, a2, a0
+; RV64IB-NEXT:    or a0, a0, a1
 ; RV64IB-NEXT:    ret
----------------
craig.topper wrote:
> RKSimon wrote:
> > Looks like we've defeated the  RISCVISD::GORCI matching code
> Running the tests through instcombine also breaks GORCI matching.
It's also worth noting, the tests that are failing are repeating the same pattern gorc pattern twice, which is redundant. The test was trying to test that we could detect the redundancy. I guess this patch may have seen some of the redundancy?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77804



More information about the llvm-commits mailing list