Unverified Commit bdcd7c0b authored by Craig Topper's avatar Craig Topper Committed by GitHub
Browse files

[DAGCombiner][RISCV] Preserve disjoint flag in folding (shl (or x, c1), c2) ->...

[DAGCombiner][RISCV] Preserve disjoint flag in folding (shl (or x, c1), c2) -> (or (shl x, c2), c1 << c2) (#76860)

Since we are shifting both inputs to the original Or by the same amount
and inserting zeros in the LSBs, the result should still be disjoint.
parent a24c5814
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment