Mercurial > hg > graal-jvmci-8
changeset 22308:ac762c1bc9a4
LSStackSlotAllocator: only run if there are virtual stack slots.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 22 Jul 2015 17:18:14 +0200 |
parents | 399b05144895 |
children | d769b9ccc2b5 |
files | graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/LSStackSlotAllocator.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/LSStackSlotAllocator.java Wed Jul 22 17:10:21 2015 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/LSStackSlotAllocator.java Wed Jul 22 17:18:14 2015 +0200 @@ -77,8 +77,10 @@ } public void allocateStackSlots(FrameMapBuilderTool builder, LIRGenerationResult res) { - try (DebugCloseable t = MainTimer.start()) { - new Allocator(res.getLIR(), builder).allocate(); + if (builder.getNumberOfStackSlots() > 0) { + try (DebugCloseable t = MainTimer.start()) { + new Allocator(res.getLIR(), builder).allocate(); + } } }