[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
Loading
Please sign in to comment