This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Sink bin op into hands of select if one hand becomes constant
Needs ReviewPublic

Authored by xbolva00 on Sep 4 2021, 1:42 PM.

Details

Summary

Restart of https://reviews.llvm.org/D71312 but more general.

Diff Detail

Event Timeline

xbolva00 created this revision.Sep 4 2021, 1:42 PM
xbolva00 requested review of this revision.Sep 4 2021, 1:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2021, 1:42 PM
xbolva00 added inline comments.Sep 4 2021, 1:45 PM
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
876

HACK just for initial patch.

We have some reverse transformation which creates infinite loop in IC with sub-minmax.ll.

Maybe bail out if matchSelectPattern returns something?

lebedev.ri resigned from this revision.Jan 12 2023, 5:23 PM

This review seems to be stuck/dead, consider abandoning if no longer relevant.

Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 5:23 PM