[MIR-Canon] Fixing case where MachineFunction is empty.
authorPuyan Lotfi <puyan@puyan.org>
Thu, 30 May 2019 21:37:25 +0000 (21:37 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Thu, 30 May 2019 21:37:25 +0000 (21:37 +0000)
commitdaaecf98c9ac41d2ad1da5bbf53303c2167501b5
tree45261feb11cb150e54ab7c851d898cb0f5e670ac
parentfc3dfd3e35a637cdbef1bc21c56a31c28e4a5b4c
[MIR-Canon] Fixing case where MachineFunction is empty.

In cases where the machine function is empty: bail on the RPO traversal.

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

llvm-svn: 362158
llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
llvm/test/CodeGen/MIR/AArch64/empty-MF.mir [new file with mode: 0644]