projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing unnecessary 'else' statement from the predicates defined in HexagonOperards.td.
[oota-llvm.git]
/
lib
/
Analysis
/
SparsePropagation.cpp
diff --git
a/lib/Analysis/SparsePropagation.cpp
b/lib/Analysis/SparsePropagation.cpp
index 0c7d05f91daadd9782bb51d04ba3177306b857fa..c819666ee44445780b975edd2810b3bba4f253f6 100644
(file)
--- a/
lib/Analysis/SparsePropagation.cpp
+++ b/
lib/Analysis/SparsePropagation.cpp
@@
-194,9
+194,8
@@
void SparseSolver::getFeasibleSuccessors(TerminatorInst &TI,
Succs.assign(TI.getNumSuccessors(), true);
return;
}
Succs.assign(TI.getNumSuccessors(), true);
return;
}
-
- unsigned CCase = SI.findCaseValue(cast<ConstantInt>(C));
- Succs[SI.resolveSuccessorIndex(CCase)] = true;
+ SwitchInst::CaseIt Case = SI.findCaseValue(cast<ConstantInt>(C));
+ Succs[Case.getSuccessorIndex()] = true;
}
}