From dcfa73fe3cf9b67573b188424477bc22ed900adf Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 19 Sep 2007 01:36:39 +0000 Subject: [PATCH] Set CCR (EFLAGS) copy cost to -1, i.e. extremely expensive to copy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42124 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86RegisterInfo.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86RegisterInfo.td b/lib/Target/X86/X86RegisterInfo.td index 0d20b59ee01..d8bbbd574b4 100644 --- a/lib/Target/X86/X86RegisterInfo.td +++ b/lib/Target/X86/X86RegisterInfo.td @@ -521,4 +521,6 @@ def VR128 : RegisterClass<"X86", [v16i8, v8i16, v4i32, v2i64, v4f32, v2f64],128, } // Status flags registers. -def CCR : RegisterClass<"X86", [i32], 32, [EFLAGS]>; +def CCR : RegisterClass<"X86", [i32], 32, [EFLAGS]> { + let CopyCost = -1; // Don't allow copying of status registers. +} -- 2.34.1