mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[MIR-Canon] Don't do vreg skip for independent instructions if there are none.
We don't want to create vregs if there is nothing to use them for. That causes verifier errors. Differential Revision: https://reviews.llvm.org/D62740 llvm-svn: 362247
This commit is contained in:
parent
d7e6a83c85
commit
884785073a
@ -743,7 +743,8 @@ static bool runOnBasicBlock(MachineBasicBlock *MBB,
|
||||
// of the MachineBasicBlock so that they are named in the order that we sorted
|
||||
// them alphabetically. Eventually we wont need SkipVRegs because we will use
|
||||
// named vregs instead.
|
||||
NVC.SkipVRegs();
|
||||
if (IdempotentInstCount)
|
||||
NVC.SkipVRegs();
|
||||
|
||||
auto MII = MBB->begin();
|
||||
for (unsigned i = 0; i < IdempotentInstCount && MII != MBB->end(); ++i) {
|
||||
|
@ -1,4 +1,5 @@
|
||||
# RUN: llc -march=amdgcn -run-pass=none -verify-machineinstrs -o - %s | FileCheck %s
|
||||
# RUN: llc -march=amdgcn -run-pass mir-canonicalizer -verify-machineinstrs -o - %s
|
||||
|
||||
# Previously getReservedRegs was called before parsing
|
||||
# machineFunctionInfo, but the AMDGPU implementation depends on
|
||||
|
Loading…
Reference in New Issue
Block a user