mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
Use DominatorTree instead of ETForest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
259e6cf191
commit
387b8cbc2d
@ -68,9 +68,9 @@ bool GCSE::runOnFunction(Function &F) {
|
||||
bool Changed = false;
|
||||
|
||||
// Get pointers to the analysis results that we will be using...
|
||||
ETForest &EF = getAnalysis<ETForest>();
|
||||
ValueNumbering &VN = getAnalysis<ValueNumbering>();
|
||||
DominatorTree &DT = getAnalysis<DominatorTree>();
|
||||
ETForest &ET = getAnalysis<ETForest>();
|
||||
ValueNumbering &VN = getAnalysis<ValueNumbering>();
|
||||
|
||||
std::vector<Value*> EqualValues;
|
||||
|
||||
@ -145,7 +145,7 @@ bool GCSE::runOnFunction(Function &F) {
|
||||
if (OtherI->getParent() == BB)
|
||||
Dominates = BlockInsts.count(OtherI);
|
||||
else
|
||||
Dominates = EF.dominates(OtherI->getParent(), BB);
|
||||
Dominates = ET.dominates(OtherI->getParent(), BB);
|
||||
|
||||
if (Dominates) {
|
||||
// Okay, we found an instruction with the same value as this one
|
||||
|
Loading…
Reference in New Issue
Block a user