This is an archive of the discontinued LLVM Phabricator instance.

[TargetLowering] Add i1 condition for bit comparison fold
ClosedPublic

Authored by ErikHogeman on Oct 26 2020, 3:47 AM.

Details

Summary

For i1 types, boolean false is represented identically regardless of the boolean content, so we can allow optimizations that otherwise would not be correct for booleans with false represented as a negative one.

Diff Detail

Event Timeline

ErikHogeman created this revision.Oct 26 2020, 3:47 AM
ErikHogeman requested review of this revision.Oct 26 2020, 3:47 AM

This is the follow-up from https://reviews.llvm.org/D89390, as discussed in that review.

spatel accepted this revision.Oct 26 2020, 5:19 AM

LGTM

This revision is now accepted and ready to land.Oct 26 2020, 5:19 AM
This revision was landed with ongoing or failed builds.Oct 27 2020, 5:22 AM
This revision was automatically updated to reflect the committed changes.