HomePhabricator

[AMDGPU] Add Optimize VGPR LiveRange Pass.

Authored by ruiling on Apr 18 2021, 7:45 PM.

Description

[AMDGPU] Add Optimize VGPR LiveRange Pass.

This pass aims to optimize VGPR live-range in a typical divergent if-else
control flow. For example:

def(a)
if(cond)

use(a)
... // A

else

use(a)

As AMDGPU access vgpr with respect to active-mask, we can mark a as
dead in region A. For details, please refer to the comments in
implementation file.

The pass is enabled by default, the frontend can disable it through
"-amdgpu-opt-vgpr-liverange=false".

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

Details

Committed
ruilingJun 21 2021, 12:25 AM
Differential Revision
D102212: [AMDGPU] Add Optimize VGPR LiveRange Pass.
Parents
rG11e9a72dfc83: [mlir][Linalg] NFC - Drop unused variable definition.
Branches
Unknown
Tags
Unknown