mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Check in a couple of changes that I apparently never committed:
- teach DifferenceEngine to unify successors of calls and invokes in certain circumstances - basic blocks actually don't have their own numbering; did that change? - add llvm-diff to the Makefile and CMake build systems git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -75,7 +75,6 @@ struct DiffContext {
|
||||
};
|
||||
|
||||
void ComputeNumbering(Function *F, DenseMap<Value*,unsigned> &Numbering) {
|
||||
unsigned BBN = 0;
|
||||
unsigned IN = 0;
|
||||
|
||||
// Arguments get the first numbers.
|
||||
@ -86,9 +85,8 @@ void ComputeNumbering(Function *F, DenseMap<Value*,unsigned> &Numbering) {
|
||||
|
||||
// Walk the basic blocks in order.
|
||||
for (Function::iterator FI = F->begin(), FE = F->end(); FI != FE; ++FI) {
|
||||
// Basic blocks have their own 'namespace'.
|
||||
if (!FI->hasName())
|
||||
Numbering[&*FI] = BBN++;
|
||||
Numbering[&*FI] = IN++;
|
||||
|
||||
// Walk the instructions in order.
|
||||
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE; ++BI)
|
||||
|
Reference in New Issue
Block a user