mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Fix a small bug, some 80 cols violations, and add some more debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37436 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d8af90c1da
commit
359208032b
@ -354,6 +354,10 @@ bool GVNPRE::runOnFunction(Function &F) {
|
||||
currTemps, currAvail, availableOut);
|
||||
}
|
||||
|
||||
DOUT << "Maximal Set: ";
|
||||
dump_unique(VN, maximalSet);
|
||||
DOUT << "\n";
|
||||
|
||||
PostDominatorTree &PDT = getAnalysis<PostDominatorTree>();
|
||||
|
||||
// Second Phase of BuildSets - calculate ANTIC_IN
|
||||
@ -384,10 +388,12 @@ bool GVNPRE::runOnFunction(Function &F) {
|
||||
std::set<Value*, ExprLT> old (anticIn.begin(), anticIn.end());
|
||||
|
||||
if (BB->getTerminator()->getNumSuccessors() == 1) {
|
||||
if (visited.find(BB) == visited.end())
|
||||
if (visited.find(BB->getTerminator()->getSuccessor(0)) ==
|
||||
visited.end())
|
||||
phi_translate_set(VN, maximalSet, maximalSet, BB, anticOut);
|
||||
else
|
||||
phi_translate_set(VN, maximalSet, anticipatedIn[BB->getTerminator()->getSuccessor(0)], BB, anticOut);
|
||||
phi_translate_set(VN, maximalSet,
|
||||
anticipatedIn[BB->getTerminator()->getSuccessor(0)], BB, anticOut);
|
||||
} else if (BB->getTerminator()->getNumSuccessors() > 1) {
|
||||
BasicBlock* first = BB->getTerminator()->getSuccessor(0);
|
||||
anticOut.insert(anticipatedIn[first].begin(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user