mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Make basicaa a bit more aggressive
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e181b94309
commit
db5b80a7f2
@ -196,6 +196,10 @@ static bool AddressMightEscape(const Value *V) {
|
|||||||
return true;
|
return true;
|
||||||
if (AddressMightEscape(I)) return true;
|
if (AddressMightEscape(I)) return true;
|
||||||
break;
|
break;
|
||||||
|
case Instruction::Ret:
|
||||||
|
// If returned, the address will escape to calling functions, but no
|
||||||
|
// callees could modify it.
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user