diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-07-28 23:50:30 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-07-28 23:50:30 +0000 |
commit | cfe41f050c0c00a0840bd10907d9d22605e1c115 (patch) | |
tree | b6158110da342e086bceab1b358ac98d5487c21a /llvm/lib/IR | |
parent | d8a1e542ab135453c0b3729d18f4fedba819d035 (diff) | |
download | bcm5719-llvm-cfe41f050c0c00a0840bd10907d9d22605e1c115.tar.gz bcm5719-llvm-cfe41f050c0c00a0840bd10907d9d22605e1c115.zip |
[Statepoints] Let patchable statepoints have a symbolic call target.
Summary:
As added initially, statepoints required their call targets to be a
constant pointer null if ``numPatchBytes`` was non-zero. This turns out
to be a problem ergonomically, since there is no way to mark patchable
statepoints as calling a (readable) symbolic value.
This change remove the restriction of requiring ``null`` call targets
for patchable statepoints, and changes PlaceSafepoints to maintain the
symbolic call target through its transformation.
Reviewers: reames, swaroop.sridhar
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D11550
llvm-svn: 243502
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 12e4f4ed056..2135dafef8d 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -1544,12 +1544,6 @@ void Verifier::VerifyStatepoint(ImmutableCallSite CS) { "gc.statepoint callee must be of function pointer type", &CI, Target); FunctionType *TargetFuncType = cast<FunctionType>(PT->getElementType()); - if (NumPatchBytes) - Assert(isa<ConstantPointerNull>(Target->stripPointerCasts()), - "gc.statepoint must have null as call target if number of patchable " - "bytes is non zero", - &CI); - const Value *NumCallArgsV = CS.getArgument(3); Assert(isa<ConstantInt>(NumCallArgsV), "gc.statepoint number of arguments to underlying call " |