diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-31 03:54:44 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-31 03:54:44 +0000 |
commit | 312babc93ff837d268b83ae829fdb122f40c34c8 (patch) | |
tree | 281d8681f32530b4f1ea2fed8bc66ca1bed4fa38 /lib/CodeGen/InlineSpiller.cpp | |
parent | e4345c9977e65b14fa4b93d19c7e67a7b15f7f40 (diff) | |
download | llvm-312babc93ff837d268b83ae829fdb122f40c34c8.tar.gz llvm-312babc93ff837d268b83ae829fdb122f40c34c8.tar.bz2 llvm-312babc93ff837d268b83ae829fdb122f40c34c8.tar.xz |
Pick a conservative register class when creating a small live range for remat.
The rematerialized instruction may require a more constrained register class
than the register being spilled. In the test case, the spilled register has been
inflated to the DPR register class, but we are rematerializing a load of the
ssub_0 sub-register which only exists for DPR_VFP2 registers.
The register class is reinflated after spilling, so the conservative choice is
only temporary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InlineSpiller.cpp')
-rw-r--r-- | lib/CodeGen/InlineSpiller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index d0c750777f..86f4cfcc92 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/lib/CodeGen/InlineSpiller.cpp @@ -627,7 +627,7 @@ bool InlineSpiller::reMaterializeFor(LiveInterval &VirtReg, } // Alocate a new register for the remat. - LiveInterval &NewLI = Edit->createFrom(VirtReg.reg, LIS, VRM); + LiveInterval &NewLI = Edit->createFrom(Original, LIS, VRM); NewLI.markNotSpillable(); // Finally we can rematerialize OrigMI before MI. |