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

[InstCombine] drop poison flags when simplifying 'shl' based on demanded bits

As with other transforms in demanded bits, we must be careful not to
wrongly propagate nsw/nuw if we are reducing values leading up to the shift.

This bug was introduced with 1b24f35f and leads to the miscompile
shown in:
https://llvm.org/PR50341
parent 339d0c1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment