-
Notifications
You must be signed in to change notification settings - Fork 15.4k
AMDGPU: Create a dummy call sequence when emitting call error #170656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMDGPU: Create a dummy call sequence when emitting call error #170656
Conversation
|
@llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) ChangesAt least one special case call lowering tries to parse the call Full diff: https://github.com/llvm/llvm-project/pull/170656.diff 1 Files Affected:
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
index ba80c0695115c..128125d05a3c8 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -1412,7 +1412,12 @@ SDValue AMDGPUTargetLowering::lowerUnhandledCall(CallLoweringInfo &CLI,
InVals.push_back(DAG.getPOISON(Arg.VT));
}
- return CLI.Chain;
+ // FIXME: Hack because R600 doesn't handle callseq pseudos yet.
+ if (getTargetMachine().getTargetTriple().getArch() == Triple::r600)
+ return CLI.Chain;
+
+ SDValue Chain = DAG.getCALLSEQ_START(CLI.Chain, 0, 0, CLI.DL);
+ return DAG.getCALLSEQ_END(Chain, 0, 0, /*InGlue=*/SDValue(), CLI.DL);
}
SDValue AMDGPUTargetLowering::LowerCall(CallLoweringInfo &CLI,
|
ro-i
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would the call being a tail call matter? (probably not since this is "unhandled call" anyway)
|
Tail calls would be opt-in by the lowering, and we don't try to handle musttail today |
At least one special case call lowering tries to parse the call sequence and asserts when it can't find a callseq_end.
6d54816 to
ce03c68
Compare
…70656) At least one special case call lowering tries to parse the call sequence and asserts when it can't find a callseq_end.

At least one special case call lowering tries to parse the call
sequence and asserts when it can't find a callseq_end.