This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Handle missing transform in fold of value extension case.
ClosedPublic

Authored by niravd on Jul 5 2017, 1:39 PM.

Details

Summary

When pushing an extension of a constant bitwise operator on a load
into the load, change other uses of the load value if they exist to
prevent the old load from persisting.

Diff Detail

Repository
rL LLVM

Event Timeline

niravd created this revision.Jul 5 2017, 1:39 PM
efriedma edited edge metadata.Jul 7 2017, 3:53 PM

Do we need to check isTruncateFree or something here?

There's a check hidden in ExtendUsesToFormExtLoad.

Do we need to check isTruncateFree or something here?

niravd updated this revision to Diff 107163.Jul 18 2017, 1:00 PM

Rebase past PR34095 change

RKSimon accepted this revision.Jul 20 2017, 5:32 AM

LGTM

This revision is now accepted and ready to land.Jul 20 2017, 5:32 AM
This revision was automatically updated to reflect the committed changes.