mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
ADCE is broken but at least we know why
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a0cd6cada
commit
8a396e57ab
@ -17,7 +17,7 @@
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
|
||||
//#define DEBUG_ADCE 1
|
||||
#define DEBUG_ADCE 1
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// ADCE Class
|
||||
@ -184,6 +184,11 @@ bool ADCE::doADCE() {
|
||||
MadeChanges = true;
|
||||
}
|
||||
AliveBlocks.insert(E);
|
||||
|
||||
// Next we need to change any PHI nodes in the entry block to refer to the
|
||||
// new predecessor node...
|
||||
|
||||
|
||||
} else {
|
||||
// We need to move the new entry block to be the first bb of the method.
|
||||
Method::iterator EBI = find(M->begin(), M->end(), EntryBlock);
|
||||
|
Loading…
Reference in New Issue
Block a user