[PATCH] D42749: [MachineOutliner] Freeze registers in new functions
Geoff Berry via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 31 12:17:15 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323905: [MachineOutliner] Freeze registers in new functions (authored by gberry, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D42749
Files:
llvm/trunk/lib/CodeGen/MachineOutliner.cpp
llvm/trunk/test/CodeGen/AArch64/machine-outliner.mir
Index: llvm/trunk/lib/CodeGen/MachineOutliner.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachineOutliner.cpp
+++ llvm/trunk/lib/CodeGen/MachineOutliner.cpp
@@ -62,6 +62,7 @@
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h"
+#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
@@ -1311,6 +1312,7 @@
DB.finalize();
}
+ MF.getRegInfo().freezeReservedRegs(MF);
return &MF;
}
Index: llvm/trunk/test/CodeGen/AArch64/machine-outliner.mir
===================================================================
--- llvm/trunk/test/CodeGen/AArch64/machine-outliner.mir
+++ llvm/trunk/test/CodeGen/AArch64/machine-outliner.mir
@@ -1,4 +1,4 @@
-# RUN: llc -mtriple=aarch64--- -run-pass=machine-outliner %s -o - | FileCheck %s
+# RUN: llc -mtriple=aarch64--- -run-pass=machine-outliner -verify-machineinstrs %s -o - | FileCheck %s
--- |
@x = common global i32 0, align 4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42749.132246.patch
Type: text/x-patch
Size: 1150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180131/93ecbe07/attachment.bin>
More information about the llvm-commits
mailing list