From: Duraid Madina Date: Wed, 6 Apr 2005 06:17:54 +0000 (+0000) Subject: make sure 'special' registers don't get allocated X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4ee131ffa8500f8c39879831fe3479c133fd4d3e;p=oota-llvm.git make sure 'special' registers don't get allocated git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21109 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/IA64/IA64RegisterInfo.td b/lib/Target/IA64/IA64RegisterInfo.td index 9534d2489bf..148ecb7eb3e 100644 --- a/lib/Target/IA64/IA64RegisterInfo.td +++ b/lib/Target/IA64/IA64RegisterInfo.td @@ -234,9 +234,8 @@ def B6 : GR<0, "b6">; // in IA64RegisterInfo.cpp def GR : RegisterClass; + r120, r121, r122, r123, r124, r125, r126, r127, + r0, r1, r2, r12, r13, r15, r22]> // these last 7 are special (look down) + + { + let Methods = [{ + iterator allocation_order_end(MachineFunction &MF) const { + return end()-7; // 7 special registers + } + }]; +} + // these are the scratch (+stacked) FP registers // ZERO (F0) and ONE (F1) are not here