[llvm-commits] [llvm] r91632 - /llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Jeffrey Yasskin
jyasskin at google.com
Thu Dec 17 14:44:34 PST 2009
Author: jyasskin
Date: Thu Dec 17 16:44:34 2009
New Revision: 91632
URL: http://llvm.org/viewvc/llvm-project?rev=91632&view=rev
Log:
Revert r91623 to unbreak the buildbots.
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=91632&r1=91631&r2=91632&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Thu Dec 17 16:44:34 2009
@@ -50,6 +50,9 @@
#include "llvm/ADT/Statistic.h"
using namespace llvm;
+#include "llvm/Support/CommandLine.h"
+static cl::opt<bool> AvoidDupAddrCompute("x86-avoid-dup-address", cl::Hidden);
+
STATISTIC(NumLoadMoved, "Number of loads moved below TokenFactor");
//===----------------------------------------------------------------------===//
@@ -1273,7 +1276,7 @@
SDValue &Disp, SDValue &Segment) {
X86ISelAddressMode AM;
bool Done = false;
- if (!N.hasOneUse()) {
+ if (AvoidDupAddrCompute && !N.hasOneUse()) {
unsigned Opcode = N.getOpcode();
if (Opcode != ISD::Constant && Opcode != ISD::FrameIndex &&
Opcode != X86ISD::Wrapper && Opcode != X86ISD::WrapperRIP) {
More information about the llvm-commits
mailing list