This is an archive of the discontinued LLVM Phabricator instance.

[X86] Teach RMW with flags isel matching to handle negate
ClosedPublic

Authored by craig.topper on Mar 29 2019, 12:15 PM.

Details

Summary

Negate updates flags like a subtract. We should be able to use the flags from the RMW form of negate when we have (store (X86ISD::SUB 0, load A), A)

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Mar 29 2019, 12:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2019, 12:15 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Mar 30 2019, 4:57 AM

LGTM

This revision is now accepted and ready to land.Mar 30 2019, 4:57 AM
This revision was automatically updated to reflect the committed changes.