tidy up a comment, as suggested by duncan
authorChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2011 17:46:19 +0000 (17:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2011 17:46:19 +0000 (17:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123590 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index 0610844fac47ff8553fe54433432d3155d493d31..a068556b734bf694ffbdb832054a7bdb4259fc63 100644 (file)
@@ -1868,8 +1868,8 @@ bool SROA::isSafeAllocaToScalarRepl(AllocaInst *AI) {
       HasPadding(AI->getAllocatedType(), *TD))
     return false;
 
-  // If the alloca is never has an access to just *part* of it, but is accessed
-  // with loads and stores, then we should use ConvertToScalarInfo to promote
+  // If the alloca never has an access to just *part* of it, but is accessed
+  // via loads and stores, then we should use ConvertToScalarInfo to promote
   // the alloca instead of promoting each piece at a time and inserting fission
   // and fusion code.
   if (!Info.hasSubelementAccess && Info.hasALoadOrStore) {