This is an archive of the discontinued LLVM Phabricator instance.

[FastISel] Don't transform FSUB(-0, X) -> FNEG(X) in FastISel
ClosedPublic

Authored by cameron.mcinally on Aug 3 2020, 12:37 PM.

Details

Summary

This patch stops unconditionally transforming FSUB(-0, X) into an FNEG(X) while building the instructions.

This corresponds with the SelectionDAGISel change in D84056.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2020, 12:37 PM
cameron.mcinally requested review of this revision.Aug 3 2020, 12:37 PM
arsenm accepted this revision.Aug 4 2020, 12:05 PM
arsenm added inline comments.
llvm/test/CodeGen/X86/fast-isel-fneg.ll
30–31

The test names here are garbage but that's a preexisting problem

This revision is now accepted and ready to land.Aug 4 2020, 12:05 PM
llvm/test/CodeGen/X86/fast-isel-fneg.ll
30–31

Good catch. Will update. And there are 2 redundant tests too, which I will remove.

llvm/lib/CodeGen/SelectionDAG/FastISel.cpp