This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fixed hang during DAG combine
ClosedPublic

Authored by rampitec on Feb 26 2019, 12:51 PM.

Details

Summary

SITargetLowering::reassociateScalarOps() does not touch constants
so that DAGCombiner::ReassociateOps() does not revert the combine.
However a global address is not a ConstantSDNode.

Switched to the method used by DAGCombiner::ReassociateOps() itself
to detect constants.

Diff Detail

Event Timeline

rampitec created this revision.Feb 26 2019, 12:51 PM
arsenm accepted this revision.Feb 26 2019, 12:54 PM

LGTM

This revision is now accepted and ready to land.Feb 26 2019, 12:54 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2019, 12:55 PM