forked from OSchip/llvm-project
This appears correct, enable it so we can see perf changes on testers
llvm-svn: 35024
This commit is contained in:
parent
9f022d550b
commit
abd3bff4f2
|
@ -303,7 +303,7 @@ static bool AllUsersAreLoads(Value *Ptr) {
|
||||||
///
|
///
|
||||||
int SROA::isSafeUseOfAllocation(Instruction *User, AllocationInst *AI) {
|
int SROA::isSafeUseOfAllocation(Instruction *User, AllocationInst *AI) {
|
||||||
if (BitCastInst *C = dyn_cast<BitCastInst>(User))
|
if (BitCastInst *C = dyn_cast<BitCastInst>(User))
|
||||||
return 0 && (isSafeUseOfBitCastedAllocation(C, AI) ? 3 : 0);
|
return isSafeUseOfBitCastedAllocation(C, AI) ? 3 : 0;
|
||||||
if (!isa<GetElementPtrInst>(User)) return 0;
|
if (!isa<GetElementPtrInst>(User)) return 0;
|
||||||
|
|
||||||
GetElementPtrInst *GEPI = cast<GetElementPtrInst>(User);
|
GetElementPtrInst *GEPI = cast<GetElementPtrInst>(User);
|
||||||
|
|
Loading…
Reference in New Issue