HomePhabricator

[AMDGPU] Insert PS early exit at end of control flow

Authored by critson on Jul 2 2020, 8:25 PM.

Description

[AMDGPU] Insert PS early exit at end of control flow

Exit early if the exec mask is zero at the end of control flow.
Mark the ends of control flow during control flow lowering and
convert these to exits during the insert skips pass.

Reviewed By: nhaehnle

Differential Revision: https://reviews.llvm.org/D82737