aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-08 07:03:55 +0000
committerChris Lattner <sabre@nondot.org>2007-03-08 07:03:55 +0000
commit97f9df1cd12bcea2a952304853193bf833214318 (patch)
treec14e2e60cc812d7d9268af8b21a736ebff1443d1
parentc14d3cac4bb5c798fbcc4b9cad87841ca087b017 (diff)
This appears correct, enable it so we can see perf changes on testers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35024 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 3108bbab14..de5b05f4c1 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<BitCastInst>(User))
- return 0 && (isSafeUseOfBitCastedAllocation(C, AI) ? 3 : 0);
+ return isSafeUseOfBitCastedAllocation(C, AI) ? 3 : 0;
if (!isa<GetElementPtrInst>(User)) return 0;
GetElementPtrInst *GEPI = cast<GetElementPtrInst>(User);