HomePhabricator

[InstCombine] Handle GEP inbounds in select op replacement (PR47730)

Authored by nikic on Mon, Oct 5, 12:13 PM.

Description

[InstCombine] Handle GEP inbounds in select op replacement (PR47730)

When retrying the "simplify with operand replaced" select
optimization without poison flags, also handle inbounds on GEPs.

Of course, this particular example would also be safe to transform
while keeping inbounds, but the underlying machinery does not
know this (yet).

Details

Committed
nikicMon, Oct 5, 12:13 PM
Parents
rG0f8e4a5ed0e5: [InstCombine] Add test for PR47730
Branches
Unknown
Tags
Unknown