This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Add one use checks to or/and->xnor folding
ClosedPublic

Authored by craig.topper on Jun 21 2017, 10:32 PM.

Details

Summary

If the components of the and/or have multiple uses this transform creates an additional instruction.

This patch makes sure we remove one of the components.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jun 21 2017, 10:32 PM
spatel accepted this revision.Jun 22 2017, 6:11 AM

LGTM - although the test file was not updated here in the uploaded patch?

This revision is now accepted and ready to land.Jun 22 2017, 6:11 AM
This revision was automatically updated to reflect the committed changes.