From abd3bff4f23d5548b06e57cfa54904e795b9db45 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 8 Mar 2007 07:03:55 +0000 Subject: [PATCH] This appears correct, enable it so we can see perf changes on testers llvm-svn: 35024 --- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 3108bbab1452..de5b05f4c1c7 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -303,7 +303,7 @@ static bool AllUsersAreLoads(Value *Ptr) { /// int SROA::isSafeUseOfAllocation(Instruction *User, AllocationInst *AI) { if (BitCastInst *C = dyn_cast(User)) - return 0 && (isSafeUseOfBitCastedAllocation(C, AI) ? 3 : 0); + return isSafeUseOfBitCastedAllocation(C, AI) ? 3 : 0; if (!isa(User)) return 0; GetElementPtrInst *GEPI = cast(User);