This is an archive of the discontinued LLVM Phabricator instance.

[Float2Int] Use a type alias for the RootSet. NFC
AbandonedPublic

Authored by bjope on Feb 13 2020, 1:54 AM.

Details

Summary

Use a type alias for the RootSet declaration in Float2IntPass.

This is just a minor refactoring in case we want to change the
type in the future (e.g. to something with deterministic iteration
order).

Event Timeline

bjope created this revision.Feb 13 2020, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2020, 1:54 AM
Herald added a subscriber: hiraditya. · View Herald Transcript

(not sure whom to add as reviewer to patches like this, added some random people who has contributed to this pass earlier)

craig.topper added inline comments.Feb 14 2020, 5:07 PM
llvm/include/llvm/Transforms/Scalar/Float2Int.h
48

Why is Roots both a member variable and passed to multiple member functions?

bjope abandoned this revision.Apr 10 2020, 5:53 PM

I'm removing the passing of Roots as arguments directly in D74534 instead.