This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Fix out-of-bounds ashr(shl) optimization
ClosedPublic

Authored by jeroen.dobbelaere on Apr 2 2021, 3:31 AM.

Details

Summary

This fixes a crash found by the oss fuzzer and reported by @fhahn.
The suggestion of @RKSimon seems to be the correct fix here. (See D91343).

The oss fuzz report can be found here: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32759

Diff Detail

Event Timeline

jeroen.dobbelaere requested review of this revision.Apr 2 2021, 3:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2021, 3:31 AM
lebedev.ri accepted this revision.Apr 2 2021, 3:40 AM

LGTM, thank you.

This revision is now accepted and ready to land.Apr 2 2021, 3:40 AM
This revision was landed with ongoing or failed builds.Apr 2 2021, 4:49 AM
This revision was automatically updated to reflect the committed changes.