This is an archive of the discontinued LLVM Phabricator instance.

[SDAG] enable binop identity constant folds for add
AbandonedPublic

Authored by LuoYuanke on Mar 13 2022, 5:28 PM.

Details

Reviewers
None
Summary

As noticed in D119654, by adding the masked intrinsics results together
we can end up with the selects being canonicalized away from the
intrinsic - this isn't what we want to test here so replace with a
insertvalue chain into a aggregate instead to retain all the results.

Diff Detail

Event Timeline

LuoYuanke created this revision.Mar 13 2022, 5:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2022, 5:28 PM
LuoYuanke requested review of this revision.Mar 13 2022, 5:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2022, 5:28 PM
LuoYuanke abandoned this revision.Mar 13 2022, 5:29 PM

Duplicate to D119654.