Add comment for load folding
authorJoel Jones <joel_k_jones@apple.com>
Tue, 11 Dec 2012 16:10:25 +0000 (16:10 +0000)
committerJoel Jones <joel_k_jones@apple.com>
Tue, 11 Dec 2012 16:10:25 +0000 (16:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169880 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PeepholeOptimizer.cpp

index cc07d4715088bde0782089a0139b110246bb0dcd..0900ba31342f4dda2ff1f126e78d0b6540f5d7cf 100644 (file)
 //     v1 = bitcast v0
 //        = v0
 //
+// - Optimize Loads:
+//
+//     Loads that can be folded into a later instruction. A load is foldable
+//     if it loads to virtual registers and the virtual register defined has 
+//     a single use.
 //===----------------------------------------------------------------------===//
 
 #define DEBUG_TYPE "peephole-opt"