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)
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D60007
[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 Event TimelineThis revision is now accepted and ready to land.Mar 30 2019, 4:57 AM Closed by commit rL357353: [X86] Teach isel for RMW binops to handle negate (authored by ctopper). · Explain WhyMar 30 2019, 12:00 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 192886 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/test/CodeGen/X86/fold-rmw-ops.ll
|