This is an archive of the discontinued LLVM Phabricator instance.

Update PatternMatcher to match both FNeg(X) and FSub(+-0.0, X) in FNeg_match
ClosedPublic

Authored by cameron.mcinally on May 3 2019, 9:13 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2019, 9:13 AM
spatel accepted this revision.May 3 2019, 9:32 AM

LGTM - thanks for splitting it off.

llvm/unittests/IR/PatternMatch.cpp
605 ↗(On Diff #198028)

Nit: I thought that was a zero on first look rather than an 'O'. Porbably better to spell that out as "One".

This revision is now accepted and ready to land.May 3 2019, 9:32 AM
cameron.mcinally marked 2 inline comments as done.
cameron.mcinally added inline comments.
llvm/unittests/IR/PatternMatch.cpp
605 ↗(On Diff #198028)

Sorry, I missed this comment in the Phab email. Will update now...

This revision was automatically updated to reflect the committed changes.