This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Enable early if convert
ClosedPublic

Authored by arsenm on Oct 28 2016, 3:33 PM.

Details

Reviewers
tstellarAMD
Summary

This causes immediate improvements, but could be better.
The cost checking that the pass does is based on critical path
length for out of order CPUs which we do not want so it skips out
on many cases we want.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 76261.Oct 28 2016, 3:33 PM
arsenm retitled this revision from to AMDGPU: Enable early if convert.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
tstellarAMD added inline comments.Nov 1 2016, 2:19 PM
lib/Target/AMDGPU/SIInstrInfo.cpp
1385

RC->getSize() will be deprecated, so we have to use the helper in AMDGPUBaseInfo for this.

arsenm updated this revision to Diff 80484.Dec 6 2016, 2:18 PM
arsenm edited edge metadata.

Don't use reg class size, fix select on undef condition regs

tstellarAMD accepted this revision.Dec 6 2016, 2:20 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Dec 6 2016, 2:20 PM
arsenm closed this revision.Jan 24 2017, 8:37 PM

r293016, except leaving it off by default for now