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

[InstCombine] Preserve nuw/nsw/exact flags when transforming (C shift (A add...

[InstCombine] Preserve nuw/nsw/exact flags when transforming (C shift (A add nuw C1)) --> ((C shift C1) shift A). (#79490)

If we weren't shifting out any non-zero bits or changing the sign before the transform, we
shouldn't be after.

Alive2: https://alive2.llvm.org/ce/z/mB-rWz
parent d2c81673
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