Skip to content

Commit d347a80

Browse files
committed
remove alias handling
1 parent ba71f09 commit d347a80

File tree

3 files changed

+1
-74
lines changed

3 files changed

+1
-74
lines changed

llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
#include "llvm/Analysis/CallGraph.h"
4444
#include "llvm/Analysis/TargetTransformInfo.h"
4545
#include "llvm/IR/Function.h"
46+
#include "llvm/IR/InstIterator.h"
4647
#include "llvm/IR/Instruction.h"
4748
#include "llvm/IR/Module.h"
48-
#include "llvm/IR/InstIterator.h"
4949
#include "llvm/IR/User.h"
5050
#include "llvm/IR/Value.h"
5151
#include "llvm/Support/Allocator.h"
@@ -536,20 +536,6 @@ void SplitGraph::buildGraph(CallGraph &CG) {
536536
continue;
537537
}
538538

539-
// see through calls of aliases
540-
const Value *CalledV = CB->getCalledOperand();
541-
if (isa<GlobalAlias>(CalledV)) {
542-
if (const auto *RealFn = dyn_cast<Function>(
543-
CalledV->stripPointerCastsAndAliases());
544-
RealFn && !RealFn->isDeclaration()) {
545-
LLVM_DEBUG(dbgs()
546-
<< " resolved call to " << RealFn->getName()
547-
<< " in: " << Inst << '\n');
548-
DirectCallees.insert(RealFn);
549-
continue;
550-
}
551-
}
552-
553539
// everything else is handled conservatively.
554540
HasIndirectCall = true;
555541
}

llvm/test/tools/llvm-split/AMDGPU/kernels-alias-dependencies-debug.ll

Lines changed: 0 additions & 22 deletions
This file was deleted.

llvm/test/tools/llvm-split/AMDGPU/kernels-alias-dependencies.ll

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)