Another part of D77804 yak shaving
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
8979 | Can these two SHL of mask be replaced with Mask = DAG.getNode(ISD::SHL, DL, VT, Mask, N1) As far as I can tell we're shifting by N01 + (N1 - N01) which should just be N1? |
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
8979 | Agreed: https://alive2.llvm.org/ce/z/rf8VHG I'll add an explicit test and update the patch. |
Comment Actions
Ensure we test up to the max shift bounds and merge shl(shl(x,N01),sub(N1,N01)) shifts
Can these two SHL of mask be replaced with
As far as I can tell we're shifting by N01 + (N1 - N01) which should just be N1?