HomePhabricator

[NFC][Regalloc] Pass VirtRegMap by reference.

Authored by mtrofin on Oct 9 2020, 4:38 PM.

Description

[NFC][Regalloc] Pass VirtRegMap by reference.

It's never null - the reason it's modeled as a pointer is because the
pass can't init it in its ctor. Passing by ref simplifies the code, too,
as the null checks were unnecessary complexity.

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

Details

Committed
mtrofinOct 12 2020, 8:32 AM
Differential Revision
D89171: [NFC][Regalloc] Pass VirtRegMap by reference.
Parents
rGc2216d796aab: [AMDGPU] Print metadata on error
Branches
Unknown
Tags
Unknown