Skip to content
Unverified Commit 2760a808 authored by Roman Lebedev's avatar Roman Lebedev
Browse files

[InstCombine] dropRedundantMaskingOfLeftShiftInput(): check that adding shift...

[InstCombine] dropRedundantMaskingOfLeftShiftInput(): check that adding shift amounts doesn't overflow (PR49778)

This is identical to 781d077a,
but for the other function.

For certain shift amount bit widths, we must first ensure that adding
shift amounts is safe, that the sum won't have an unsigned overflow.

Fixes https://bugs.llvm.org/show_bug.cgi?id=49778
parent dceb3e59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment