From 66843dbef9f3ef1a87bdc8d693dbc677321c7dfb 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 --- lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 3108bbab145..de5b05f4c1c 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/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);