Skip to content
Commit a0c3c607 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] fold shift-right-by-constant with shift-right-of-constant operand

  (C2 >> X) >> C1 --> (C2 >> C1) >> X

The shift-left form of this transform has existed since:
16f18ed7

...but it applies to matching shift right opcodes too:
https://alive2.llvm.org/ce/z/c5eQms
parent c5d942a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment