mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[CallSite removal][AMDGPU] Use CallBase instead of CallSite in AMDGPUFixFunctionBitcasts. NFC
This commit is contained in:
parent
714639d790
commit
f1e20fd7a7
@ -31,13 +31,12 @@ class AMDGPUFixFunctionBitcasts final
|
||||
bool Modified;
|
||||
|
||||
public:
|
||||
void visitCallSite(CallSite CS) {
|
||||
if (CS.getCalledFunction())
|
||||
void visitCallBase(CallBase &CB) {
|
||||
if (CB.getCalledFunction())
|
||||
return;
|
||||
auto Callee = dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts());
|
||||
if (Callee &&
|
||||
isLegalToPromote(*cast<CallBase>(CS.getInstruction()), Callee)) {
|
||||
promoteCall(*cast<CallBase>(CS.getInstruction()), Callee);
|
||||
auto *Callee = dyn_cast<Function>(CB.getCalledValue()->stripPointerCasts());
|
||||
if (Callee && isLegalToPromote(CB, Callee)) {
|
||||
promoteCall(CB, Callee);
|
||||
Modified = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user