This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Refactor DPPCombine
ClosedPublic

Authored by Joe_Nash on Mar 22 2021, 11:50 AM.

Details

Summary

NFC. Extract IsShrinkable into a helper function, and
make Subtarget a member variable.

Diff Detail

Event Timeline

Joe_Nash created this revision.Mar 22 2021, 11:50 AM
Joe_Nash requested review of this revision.Mar 22 2021, 11:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2021, 11:50 AM
rampitec accepted this revision.Mar 22 2021, 12:45 PM

LGTM with a nit.

llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
57

You do not need '= nullptr' here, it is initialized in runOnMachineFunction anyway.

This revision is now accepted and ready to land.Mar 22 2021, 12:45 PM
Joe_Nash updated this revision to Diff 332411.Mar 22 2021, 1:31 PM

remove null initialization and fix clang-format

This revision was automatically updated to reflect the committed changes.
Joe_Nash marked an inline comment as done.