diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2011-01-30 22:07:39 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2011-01-30 22:07:39 +0000 |
commit | 221f4faa92ab90321083fb690e683738c411bc29 (patch) | |
tree | 0866d4ee341342c63b93d8efccc7cc107ebbf404 /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | fe3a6e049d2917ff030ddd986f0b6978bc3d6840 (diff) | |
download | bcm5719-llvm-221f4faa92ab90321083fb690e683738c411bc29.tar.gz bcm5719-llvm-221f4faa92ab90321083fb690e683738c411bc29.zip |
Save a mapping between original and cloned constpool entries.
llvm-svn: 124570
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 84499b118eb..dd81796e8aa 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -368,6 +368,14 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &MF) { if (isThumb && !HasFarJump && AFI->isLRSpilledForFarJump()) MadeChange |= UndoLRSpillRestore(); + // Save the mapping between original and cloned constpool entries. + for (unsigned i = 0, e = CPEntries.size(); i != e; ++i) { + for (unsigned j = 0, je = CPEntries[i].size(); j != je; ++j) { + const CPEntry & CPE = CPEntries[i][j]; + AFI->recordCPEClone(i, CPE.CPI); + } + } + DEBUG(errs() << '\n'; dumpBBs()); BBSizes.clear(); |