[llvm-commits] [llvm] r42124 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.td
Evan Cheng
evan.cheng at apple.com
Tue Sep 18 18:36:39 PDT 2007
Author: evancheng
Date: Tue Sep 18 20:36:39 2007
New Revision: 42124
URL: http://llvm.org/viewvc/llvm-project?rev=42124&view=rev
Log:
Set CCR (EFLAGS) copy cost to -1, i.e. extremely expensive to copy.
Modified:
llvm/trunk/lib/Target/X86/X86RegisterInfo.td
Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.td?rev=42124&r1=42123&r2=42124&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.td Tue Sep 18 20:36:39 2007
@@ -521,4 +521,6 @@
}
// 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.
+}
More information about the llvm-commits
mailing list