mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Remove variables which are assigned to but for which the value
is not used. Spotted by gcc-4.6. llvm-svn: 106854
This commit is contained in:
parent
1d187ed03e
commit
4fa152555d
@ -6108,7 +6108,6 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
|
|||||||
// Check if the result type doesn't match the inserted element type. A
|
// Check if the result type doesn't match the inserted element type. A
|
||||||
// SCALAR_TO_VECTOR may truncate the inserted element and the
|
// SCALAR_TO_VECTOR may truncate the inserted element and the
|
||||||
// EXTRACT_VECTOR_ELT may widen the extracted vector.
|
// EXTRACT_VECTOR_ELT may widen the extracted vector.
|
||||||
EVT EltVT = InVec.getValueType().getVectorElementType();
|
|
||||||
SDValue InOp = InVec.getOperand(0);
|
SDValue InOp = InVec.getOperand(0);
|
||||||
EVT NVT = N->getValueType(0);
|
EVT NVT = N->getValueType(0);
|
||||||
if (InOp.getValueType() != NVT) {
|
if (InOp.getValueType() != NVT) {
|
||||||
|
@ -168,7 +168,6 @@ void ScheduleDAGSDNodes::ClusterNeighboringLoads(SDNode *Node) {
|
|||||||
DenseMap<long long, SDNode*> O2SMap; // Map from offset to SDNode.
|
DenseMap<long long, SDNode*> O2SMap; // Map from offset to SDNode.
|
||||||
bool Cluster = false;
|
bool Cluster = false;
|
||||||
SDNode *Base = Node;
|
SDNode *Base = Node;
|
||||||
int64_t BaseOffset;
|
|
||||||
for (SDNode::use_iterator I = Chain->use_begin(), E = Chain->use_end();
|
for (SDNode::use_iterator I = Chain->use_begin(), E = Chain->use_end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
SDNode *User = *I;
|
SDNode *User = *I;
|
||||||
@ -184,12 +183,8 @@ void ScheduleDAGSDNodes::ClusterNeighboringLoads(SDNode *Node) {
|
|||||||
Offsets.push_back(Offset1);
|
Offsets.push_back(Offset1);
|
||||||
O2SMap.insert(std::make_pair(Offset2, User));
|
O2SMap.insert(std::make_pair(Offset2, User));
|
||||||
Offsets.push_back(Offset2);
|
Offsets.push_back(Offset2);
|
||||||
if (Offset2 < Offset1) {
|
if (Offset2 < Offset1)
|
||||||
Base = User;
|
Base = User;
|
||||||
BaseOffset = Offset2;
|
|
||||||
} else {
|
|
||||||
BaseOffset = Offset1;
|
|
||||||
}
|
|
||||||
Cluster = true;
|
Cluster = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -625,7 +620,6 @@ MachineBasicBlock *ScheduleDAGSDNodes::EmitSchedule() {
|
|||||||
SDDbgInfo::DbgIterator DE = DAG->DbgEnd();
|
SDDbgInfo::DbgIterator DE = DAG->DbgEnd();
|
||||||
// Now emit the rest according to source order.
|
// Now emit the rest according to source order.
|
||||||
unsigned LastOrder = 0;
|
unsigned LastOrder = 0;
|
||||||
MachineInstr *LastMI = 0;
|
|
||||||
for (unsigned i = 0, e = Orders.size(); i != e && DI != DE; ++i) {
|
for (unsigned i = 0, e = Orders.size(); i != e && DI != DE; ++i) {
|
||||||
unsigned Order = Orders[i].first;
|
unsigned Order = Orders[i].first;
|
||||||
MachineInstr *MI = Orders[i].second;
|
MachineInstr *MI = Orders[i].second;
|
||||||
@ -657,7 +651,6 @@ MachineBasicBlock *ScheduleDAGSDNodes::EmitSchedule() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
LastOrder = Order;
|
LastOrder = Order;
|
||||||
LastMI = MI;
|
|
||||||
}
|
}
|
||||||
// Add trailing DbgValue's before the terminator. FIXME: May want to add
|
// Add trailing DbgValue's before the terminator. FIXME: May want to add
|
||||||
// some of them before one or more conditional branches?
|
// some of them before one or more conditional branches?
|
||||||
|
@ -2286,7 +2286,6 @@ bool SelectionDAG::isVerifiedDebugInfoDesc(SDValue Op) const {
|
|||||||
SDValue SelectionDAG::getShuffleScalarElt(const ShuffleVectorSDNode *N,
|
SDValue SelectionDAG::getShuffleScalarElt(const ShuffleVectorSDNode *N,
|
||||||
unsigned i) {
|
unsigned i) {
|
||||||
EVT VT = N->getValueType(0);
|
EVT VT = N->getValueType(0);
|
||||||
DebugLoc dl = N->getDebugLoc();
|
|
||||||
if (N->getMaskElt(i) < 0)
|
if (N->getMaskElt(i) < 0)
|
||||||
return getUNDEF(VT.getVectorElementType());
|
return getUNDEF(VT.getVectorElementType());
|
||||||
unsigned Index = N->getMaskElt(i);
|
unsigned Index = N->getMaskElt(i);
|
||||||
|
@ -4177,7 +4177,6 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||||||
DAG.getMachineFunction().getMMI().setCallsUnwindInit(true);
|
DAG.getMachineFunction().getMMI().setCallsUnwindInit(true);
|
||||||
return 0;
|
return 0;
|
||||||
case Intrinsic::eh_dwarf_cfa: {
|
case Intrinsic::eh_dwarf_cfa: {
|
||||||
EVT VT = getValue(I.getArgOperand(0)).getValueType();
|
|
||||||
SDValue CfaArg = DAG.getSExtOrTrunc(getValue(I.getArgOperand(0)), dl,
|
SDValue CfaArg = DAG.getSExtOrTrunc(getValue(I.getArgOperand(0)), dl,
|
||||||
TLI.getPointerTy());
|
TLI.getPointerTy());
|
||||||
SDValue Offset = DAG.getNode(ISD::ADD, dl,
|
SDValue Offset = DAG.getNode(ISD::ADD, dl,
|
||||||
|
Loading…
Reference in New Issue
Block a user