summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPU.h
diff options
context:
space:
mode:
authorKalle Raiskila <kalle.raiskila@nokia.com>2011-01-11 09:07:54 +0000
committerKalle Raiskila <kalle.raiskila@nokia.com>2011-01-11 09:07:54 +0000
commitbe9ad1e63183133c2b51d38b2d6ffe5fdaf93de9 (patch)
treed2ef5fc4e00d53261babd0fb5965b558e29d924e /llvm/lib/Target/CellSPU/SPU.h
parent23bf3bafb71107523987b59ef1b206987401a8d1 (diff)
downloadbcm5719-llvm-be9ad1e63183133c2b51d38b2d6ffe5fdaf93de9.tar.gz
bcm5719-llvm-be9ad1e63183133c2b51d38b2d6ffe5fdaf93de9.zip
Add a "nop filler" pass to SPU.
Filling no-ops is done just before emitting of assembly, when the instruction stream is final. No-ops are inserted to align the instructions so the dual-issue of the pipeline is utilized. This speeds up generated code with a minimum of 1% on a select set of algorithms. This pass may be redundant if the instruction scheduler and all subsequent passes that modify the instruction stream (prolog+epilog inserter, register scavenger, are there others?) are made aware of the instruction alignments. llvm-svn: 123226
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPU.h')
-rw-r--r--llvm/lib/Target/CellSPU/SPU.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/CellSPU/SPU.h b/llvm/lib/Target/CellSPU/SPU.h
index 1f215113b40..72f84300b2c 100644
--- a/llvm/lib/Target/CellSPU/SPU.h
+++ b/llvm/lib/Target/CellSPU/SPU.h
@@ -23,6 +23,7 @@ namespace llvm {
class formatted_raw_ostream;
FunctionPass *createSPUISelDag(SPUTargetMachine &TM);
+ FunctionPass *createSPUNopFillerPass(SPUTargetMachine &tm);
extern Target TheCellSPUTarget;
}
OpenPOWER on IntegriCloud