This appears correct, enable it so we can see perf changes on testers
authorChris Lattner <sabre@nondot.org>
Thu, 8 Mar 2007 07:03:55 +0000 (07:03 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Mar 2007 07:03:55 +0000 (07:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35024 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index 3108bbab145240fb1e718227ecfa01c2f69e987a..de5b05f4c1c754f6cbc0a019a1b80578bfb4f223 100644 (file)
@@ -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);