mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
Use pop_back_val instead of back()+pop_back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92918 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
66b581ef49
commit
7b1e2a50a5
@ -456,8 +456,7 @@ void SelectionDAGISel::ShrinkDemandedOps() {
|
|||||||
|
|
||||||
TargetLowering::TargetLoweringOpt TLO(*CurDAG, true);
|
TargetLowering::TargetLoweringOpt TLO(*CurDAG, true);
|
||||||
while (!Worklist.empty()) {
|
while (!Worklist.empty()) {
|
||||||
SDNode *N = Worklist.back();
|
SDNode *N = Worklist.pop_back_val();
|
||||||
Worklist.pop_back();
|
|
||||||
|
|
||||||
if (N->use_empty() && N != CurDAG->getRoot().getNode()) {
|
if (N->use_empty() && N != CurDAG->getRoot().getNode()) {
|
||||||
CurDAG->DeleteNode(N);
|
CurDAG->DeleteNode(N);
|
||||||
@ -467,7 +466,6 @@ void SelectionDAGISel::ShrinkDemandedOps() {
|
|||||||
// Run ShrinkDemandedOp on scalar binary operations.
|
// Run ShrinkDemandedOp on scalar binary operations.
|
||||||
if (N->getNumValues() == 1 &&
|
if (N->getNumValues() == 1 &&
|
||||||
N->getValueType(0).isSimple() && N->getValueType(0).isInteger()) {
|
N->getValueType(0).isSimple() && N->getValueType(0).isInteger()) {
|
||||||
DebugLoc dl = N->getDebugLoc();
|
|
||||||
unsigned BitWidth = N->getValueType(0).getScalarType().getSizeInBits();
|
unsigned BitWidth = N->getValueType(0).getScalarType().getSizeInBits();
|
||||||
APInt Demanded = APInt::getAllOnesValue(BitWidth);
|
APInt Demanded = APInt::getAllOnesValue(BitWidth);
|
||||||
APInt KnownZero, KnownOne;
|
APInt KnownZero, KnownOne;
|
||||||
@ -520,9 +518,8 @@ void SelectionDAGISel::ComputeLiveOutVRegInfo() {
|
|||||||
APInt KnownZero;
|
APInt KnownZero;
|
||||||
APInt KnownOne;
|
APInt KnownOne;
|
||||||
|
|
||||||
while (!Worklist.empty()) {
|
do {
|
||||||
SDNode *N = Worklist.back();
|
SDNode *N = Worklist.pop_back_val();
|
||||||
Worklist.pop_back();
|
|
||||||
|
|
||||||
// If we've already seen this node, ignore it.
|
// If we've already seen this node, ignore it.
|
||||||
if (!VisitedNodes.insert(N))
|
if (!VisitedNodes.insert(N))
|
||||||
@ -562,7 +559,7 @@ void SelectionDAGISel::ComputeLiveOutVRegInfo() {
|
|||||||
LOI.KnownOne = KnownOne;
|
LOI.KnownOne = KnownOne;
|
||||||
LOI.KnownZero = KnownZero;
|
LOI.KnownZero = KnownZero;
|
||||||
}
|
}
|
||||||
}
|
} while (!Worklist.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectionDAGISel::CodeGenAndEmitDAG() {
|
void SelectionDAGISel::CodeGenAndEmitDAG() {
|
||||||
|
Loading…
Reference in New Issue
Block a user