mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Revert r91623 to unbreak the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b17cb06c35
commit
08ce53996e
@ -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 @@ bool X86DAGToDAGISel::SelectAddr(SDValue Op, SDValue N, SDValue &Base,
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user