This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Extend saturating idempotent atomicrmw transform to FP
ClosedPublic

Authored by reames on Mar 1 2019, 10:28 AM.

Details

Summary

I'm assuming that the nan propogation logic for InstructonSimplify's handling of fadd and fsub is correct, and applying the same to atomicrmw.

Diff Detail

Repository
rL LLVM

Event Timeline

reames created this revision.Mar 1 2019, 10:28 AM
jfb accepted this revision.Mar 1 2019, 10:34 AM
jfb added a subscriber: scanon.

Two nits, LGTM, with @scanon for visibility.

lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp
60 ↗(On Diff #188940)

Typo "equivalent"

77 ↗(On Diff #188940)

Remove TODO

This revision is now accepted and ready to land.Mar 1 2019, 10:34 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2019, 11:49 AM