[llvm-commits] [llvm] r100497 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Apr 5 16:48:02 PDT 2010
Author: stoklund
Date: Mon Apr 5 18:48:02 2010
New Revision: 100497
URL: http://llvm.org/viewvc/llvm-project?rev=100497&view=rev
Log:
Properly enable load clustering.
Operand 2 on a load instruction does not have to be a RegisterSDNode for this to
work.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=100497&r1=100496&r2=100497&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Mon Apr 5 18:48:02 2010
@@ -2961,10 +2961,6 @@
Load1->getOperand(2) == Load2->getOperand(2)) {
if (cast<ConstantSDNode>(Load1->getOperand(1))->getZExtValue() != 1)
return false;
- SDValue Op2 = Load1->getOperand(2);
- if (!isa<RegisterSDNode>(Op2) ||
- cast<RegisterSDNode>(Op2)->getReg() != 0)
- return 0;
// Now let's examine the displacements.
if (isa<ConstantSDNode>(Load1->getOperand(3)) &&
More information about the llvm-commits
mailing list