minor tidying of comments.
authorChris Lattner <sabre@nondot.org>
Mon, 23 Jun 2008 17:11:23 +0000 (17:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Jun 2008 17:11:23 +0000 (17:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52630 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index 67ee70035afdda4f907922e22bd94ed3d9d65d3e..4e289e3d6913530b399ba873b96e059a3eb651c6 100644 (file)
@@ -313,12 +313,13 @@ void SROA::DoScalarReplacement(AllocationInst *AI,
       continue;
     }
     
-    // Replace %res = load { i32, i32 }* %alloc
-    // by
-    // %load.0 = load i32* %alloc.0
-    // %insert.0 insertvalue { i32, i32 } zeroinitializer, i32 %load.0, 0 
-    // %load.1 = load i32* %alloc.1
-    // %insert = insertvalue { i32, i32 } %insert.0, i32 %load.1, 1 
+    // Replace:
+    //   %res = load { i32, i32 }* %alloc
+    // with:
+    //   %load.0 = load i32* %alloc.0
+    //   %insert.0 insertvalue { i32, i32 } zeroinitializer, i32 %load.0, 0 
+    //   %load.1 = load i32* %alloc.1
+    //   %insert = insertvalue { i32, i32 } %insert.0, i32 %load.1, 1 
     // (Also works for arrays instead of structs)
     if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
       Value *Insert = UndefValue::get(LI->getType());
@@ -331,12 +332,13 @@ void SROA::DoScalarReplacement(AllocationInst *AI,
       continue;
     }
 
-    // Replace store { i32, i32 } %val, { i32, i32 }* %alloc
-    // by
-    // %val.0 = extractvalue { i32, i32 } %val, 0 
-    // store i32 %val.0, i32* %alloc.0
-    // %val.1 = extractvalue { i32, i32 } %val, 1 
-    // store i32 %val.1, i32* %alloc.1
+    // Replace:
+    //   store { i32, i32 } %val, { i32, i32 }* %alloc
+    // with:
+    //   %val.0 = extractvalue { i32, i32 } %val, 0 
+    //   store i32 %val.0, i32* %alloc.0
+    //   %val.1 = extractvalue { i32, i32 } %val, 1 
+    //   store i32 %val.1, i32* %alloc.1
     // (Also works for arrays instead of structs)
     if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
       Value *Val = SI->getOperand(0);