forked from OSchip/llvm-project
Fix tail call conversion and test cases.
Summary: A previous diff accidentally disabled tail call conversion. Additionally some test cases relied on output of "-v=2". Fix those. (cherry picked from FBD3823760)
This commit is contained in:
parent
c27a6a5c63
commit
1cf200107e
|
@ -585,8 +585,8 @@ bool BinaryFunction::disassemble(ArrayRef<uint8_t> FunctionData) {
|
|||
// Assign proper opcode for tail calls, so that they could be
|
||||
// treated as calls.
|
||||
if (!IsCall) {
|
||||
if (opts::Verbosity >= 2 &&
|
||||
!MIA->convertJmpToTailCall(Instruction)) {
|
||||
if (!MIA->convertJmpToTailCall(Instruction) &&
|
||||
opts::Verbosity >= 2) {
|
||||
assert(IsCondBranch && "unknown tail call instruction");
|
||||
errs() << "BOLT-WARNING: conditional tail call detected in "
|
||||
<< "function " << *this << " at 0x"
|
||||
|
|
Loading…
Reference in New Issue