This is an archive of the discontinued LLVM Phabricator instance.

[ConstantFolding] Fixing addo/subo with undef
ClosedPublic

Authored by georgemitenkov on Mar 29 2021, 11:21 PM.

Details

Summary

When folding addo/subo with undef, the current
convention is to use { -1, false } for addo and
{ 0, false } for subo. This was fixed for InstSimplify in
https://reviews.llvm.org/rGf094d65beaa492e845b03561eddd75b5be653a01,
but not in ConstantFolding.

Diff Detail

Event Timeline

georgemitenkov requested review of this revision.Mar 29 2021, 11:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2021, 11:21 PM
nikic accepted this revision.Mar 30 2021, 12:52 AM

LGTM

This revision is now accepted and ready to land.Mar 30 2021, 12:52 AM
lebedev.ri accepted this revision.Mar 30 2021, 2:44 AM
This revision was landed with ongoing or failed builds.Mar 31 2021, 12:14 PM
This revision was automatically updated to reflect the committed changes.