aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoel Jones <joel_k_jones@apple.com>2012-12-11 16:10:25 +0000
committerJoel Jones <joel_k_jones@apple.com>2012-12-11 16:10:25 +0000
commit8293b7b8b1c4372095f86097da33f6cc63330289 (patch)
tree8bfe1ae7dab806c9c002ca3af72ca721224254ff /lib
parente4b3e9445f0bbd4ecf2c5da6add13ec2423fe2ef (diff)
downloadexternal_llvm-8293b7b8b1c4372095f86097da33f6cc63330289.zip
external_llvm-8293b7b8b1c4372095f86097da33f6cc63330289.tar.gz
external_llvm-8293b7b8b1c4372095f86097da33f6cc63330289.tar.bz2
Add comment for load folding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/PeepholeOptimizer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/PeepholeOptimizer.cpp b/lib/CodeGen/PeepholeOptimizer.cpp
index cc07d47..0900ba3 100644
--- a/lib/CodeGen/PeepholeOptimizer.cpp
+++ b/lib/CodeGen/PeepholeOptimizer.cpp
@@ -49,6 +49,11 @@
// 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"