Commit c27ad805 authored by Roman Lebedev's avatar Roman Lebedev Committed by Tom Stellard
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

(cherry picked from commit 2760a808)
parent 4a4b1c75
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