The cast simplifications that instcombine does here do not make any
attempt to obey the verifier rules for musttail calls. Therefore we have
to disable them.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 16641 Build 16641: arc lint + arc unit
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
4011 | Why does it matter whether the function is a thunk? It seems like this would be a problem for any musttail call. |
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
4011 | That's true. I can imagine LTO situations where this would go wrong without any variadic argument pack forwarding being involved. |
Comment Actions
LGTM with one minor change.
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
4012 | CS.isMustTailCall(). |
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
4012 | Thanks! |
Why does it matter whether the function is a thunk? It seems like this would be a problem for any musttail call.