This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Turn off MergeConsecutiveStores() before Instruction Selection for AMDGPU
ClosedPublic

Authored by msearles on Dec 18 2017, 6:14 PM.

Details

Summary

Turn off MergeConsecutiveStores() before Instruction Selection for AMDGPU. Commit dbbb6c5fc3642987430866dffdf710df4f616ac7 turned on MergeConsecutiveStores() before Instruction Selection for all targets. Enough AMDGPU compiles go into an infinite loop ( MergeConsecutiveStores() merges two stores; LegalizeStoreOps() un-merges; MergeConsecutiveStores() re-merges, etc. ) to warrant turning it off until the issues can be addressed.

Diff Detail

Repository
rL LLVM

Event Timeline

msearles created this revision.Dec 18 2017, 6:14 PM
msearles updated this revision to Diff 127533.Dec 19 2017, 8:18 AM

Ran instnamer on memory-legalizer-store-infinite-loop.ll

rampitec added inline comments.Dec 19 2017, 9:30 AM
test/CodeGen/AMDGPU/memory-legalizer-store-infinite-loop.ll
1 ↗(On Diff #127533)

Please use -check-prefix=GCN instead of CHECK.

msearles updated this revision to Diff 127552.Dec 19 2017, 9:46 AM

Use -check-prefix=GCN instead of CHECK; add GCN-LABEL

msearles marked an inline comment as done.Dec 19 2017, 9:46 AM
arsenm added inline comments.Dec 19 2017, 10:00 AM
lib/Target/AMDGPU/AMDGPUISelLowering.h
205 ↗(On Diff #127552)

Needs a comment explaining why

msearles updated this revision to Diff 127558.Dec 19 2017, 10:19 AM

Add comment per reviewer request

msearles marked an inline comment as done.Dec 19 2017, 10:19 AM
arsenm accepted this revision.Dec 19 2017, 10:26 AM

LGTM with minor fixes

lib/Target/AMDGPU/AMDGPUISelLowering.h
206 ↗(On Diff #127558)

Should refer to the svn revision since that is still the canonical name

test/CodeGen/AMDGPU/memory-legalizer-store-infinite-loop.ll
14 ↗(On Diff #127558)

Check the stores

15 ↗(On Diff #127558)

You can remove weak_odr

This revision is now accepted and ready to land.Dec 19 2017, 10:26 AM
msearles updated this revision to Diff 127572.Dec 19 2017, 11:15 AM

Adjust per reviewer comments.

msearles marked 3 inline comments as done.Dec 19 2017, 11:15 AM
arsenm accepted this revision.Dec 19 2017, 11:17 AM

LGTM

lib/Target/AMDGPU/AMDGPUISelLowering.h
207–208 ↗(On Diff #127572)

Just r 319036, the rest is junk

This revision was automatically updated to reflect the committed changes.