[llvm-commits] [llvm] r102456 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Evan Cheng evan.cheng at apple.com
Tue Apr 27 12:48:31 PDT 2010


Author: evancheng
Date: Tue Apr 27 14:48:31 2010
New Revision: 102456

URL: http://llvm.org/viewvc/llvm-project?rev=102456&view=rev
Log:
SRA promotion is also not free.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=102456&r1=102455&r2=102456&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Apr 27 14:48:31 2010
@@ -9948,7 +9948,6 @@
   case ISD::ZERO_EXTEND:
   case ISD::ANY_EXTEND:
   case ISD::SHL:
-  case ISD::SRA:
   case ISD::SRL:
   case ISD::SUB:
   case ISD::ADD:
@@ -10000,8 +9999,8 @@
     Promote = true;
     break;
   case ISD::SHL:
-  case ISD::SRA:
-  case ISD::SRL: {
+  case ISD::SRL:
+ {
     SDValue N0 = Op.getOperand(0);
     // Look out for (store (shl (load), x)).
     if (MayFoldLoad(N0) && MayFoldIntoStore(Op))





More information about the llvm-commits mailing list