This appears correct, enable it so we can see perf changes on testers

llvm-svn: 35024
This commit is contained in:
Chris Lattner 2007-03-08 07:03:55 +00:00
parent 9f022d550b
commit abd3bff4f2
1 changed files with 1 additions and 1 deletions

View File

@ -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);