[llvm-commits] [llvm-gcc-4.2] r50114 - /llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
Devang Patel
dpatel at apple.com
Tue Apr 22 15:38:33 PDT 2008
Author: dpatel
Date: Tue Apr 22 17:38:33 2008
New Revision: 50114
URL: http://llvm.org/viewvc/llvm-project?rev=50114&view=rev
Log:
Fix Benchmarks/McCat/09-vor/vor failures by restoring original behavior.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp?rev=50114&r1=50113&r2=50114&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp Tue Apr 22 17:38:33 2008
@@ -954,6 +954,12 @@
if (!foundNonInt)
return false;
+ // FIXME: Fix code generator. Causes Benchmarks/McCat/09-vor/vor failures.
+ if (STyElements == 2
+ && STy->getElementType(0)->getTypeID() == Type::DoubleTyID
+ && STy->getElementType(1)->getTypeID() == Type::DoubleTyID)
+ return false;
+
// Let gcc specific routine answer the question.
enum x86_64_reg_class Class[MAX_CLASSES];
enum machine_mode Mode = ix86_getNaturalModeForType(TreeType);
More information about the llvm-commits
mailing list