mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106730 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a14be0693
commit
d883a9d1ed
@ -454,9 +454,9 @@ uint32_t ValueTable::lookup_or_add_call(CallInst* C) {
|
||||
return nextValueNumber++;
|
||||
}
|
||||
|
||||
for (unsigned i = 1; i < C->getNumOperands(); ++i) {
|
||||
uint32_t c_vn = lookup_or_add(C->getOperand(i));
|
||||
uint32_t cd_vn = lookup_or_add(local_cdep->getOperand(i));
|
||||
for (unsigned i = 0, e = C->getNumArgOperands(); i < e; ++i) {
|
||||
uint32_t c_vn = lookup_or_add(C->getArgOperand(i));
|
||||
uint32_t cd_vn = lookup_or_add(local_cdep->getArgOperand(i));
|
||||
if (c_vn != cd_vn) {
|
||||
valueNumbering[C] = nextValueNumber;
|
||||
return nextValueNumber++;
|
||||
@ -510,9 +510,9 @@ uint32_t ValueTable::lookup_or_add_call(CallInst* C) {
|
||||
valueNumbering[C] = nextValueNumber;
|
||||
return nextValueNumber++;
|
||||
}
|
||||
for (unsigned i = 1; i < C->getNumOperands(); ++i) {
|
||||
uint32_t c_vn = lookup_or_add(C->getOperand(i));
|
||||
uint32_t cd_vn = lookup_or_add(cdep->getOperand(i));
|
||||
for (unsigned i = 0, e = C->getNumArgOperands(); i < e; ++i) {
|
||||
uint32_t c_vn = lookup_or_add(C->getArgOperand(i));
|
||||
uint32_t cd_vn = lookup_or_add(cdep->getArgOperand(i));
|
||||
if (c_vn != cd_vn) {
|
||||
valueNumbering[C] = nextValueNumber;
|
||||
return nextValueNumber++;
|
||||
|
Loading…
Reference in New Issue
Block a user