mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Fix memdep's handling of invokes when finding the dependency of another call
instruction. This fixes some Ada miscompiles reported in PR2324. llvm-svn: 51069
This commit is contained in:
parent
6f30057094
commit
5e6431c140
@ -129,7 +129,7 @@ Instruction* MemoryDependenceAnalysis::getCallSiteDependency(CallSite C,
|
|||||||
|
|
||||||
// FreeInsts erase the entire structure
|
// FreeInsts erase the entire structure
|
||||||
pointerSize = ~0UL;
|
pointerSize = ~0UL;
|
||||||
} else if (isa<CallInst>(QI)) {
|
} else if (CallSite::get(QI).getInstruction() != 0) {
|
||||||
AliasAnalysis::ModRefBehavior result =
|
AliasAnalysis::ModRefBehavior result =
|
||||||
AA.getModRefBehavior(CallSite::get(QI));
|
AA.getModRefBehavior(CallSite::get(QI));
|
||||||
if (result != AliasAnalysis::DoesNotAccessMemory) {
|
if (result != AliasAnalysis::DoesNotAccessMemory) {
|
||||||
|
Loading…
Reference in New Issue
Block a user