summaryrefslogtreecommitdiff
path: root/lib/Target/CellSPU/SPUISelLowering.h
diff options
context:
space:
mode:
authorKalle Raiskila <kalle.raiskila@nokia.com>2010-11-29 10:08:09 +0000
committerKalle Raiskila <kalle.raiskila@nokia.com>2010-11-29 10:08:09 +0000
commitb00f24b13c49fe1d7151a143fbb6213b3615c7ad (patch)
tree15546f5cf8b510bba6306e4d3e11af0370e3ba32 /lib/Target/CellSPU/SPUISelLowering.h
parent11edd0cedc98cda93681a6e9779f542c7354ec86 (diff)
downloadllvm-b00f24b13c49fe1d7151a143fbb6213b3615c7ad.tar.gz
llvm-b00f24b13c49fe1d7151a143fbb6213b3615c7ad.tar.bz2
llvm-b00f24b13c49fe1d7151a143fbb6213b3615c7ad.tar.xz
Allow machine LICM to do its job on SPU.
-return a sensible value for register pressure -add pattern to 'ila' instrucion git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPUISelLowering.h')
-rw-r--r--lib/Target/CellSPU/SPUISelLowering.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.h b/lib/Target/CellSPU/SPUISelLowering.h
index 82f10270db..95d44afe37 100644
--- a/lib/Target/CellSPU/SPUISelLowering.h
+++ b/lib/Target/CellSPU/SPUISelLowering.h
@@ -181,6 +181,14 @@ namespace llvm {
virtual bool isLegalAddressingMode(const AddrMode &AM,
const Type *Ty) const;
+
+ /// After allocating this many registers, the allocator should feel
+ /// register pressure. The value is a somewhat random guess, based on the
+ /// number of non callee saved registers in the C calling convention.
+ virtual unsigned getRegPressureLimit( const TargetRegisterClass *RC,
+ MachineFunction &MF) const{
+ return 50;
+ }
};
}