aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-04 23:09:24 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-04 23:09:24 +0000
commit50c047d159a7f6d9a22e17178576c7ac5178356a (patch)
tree4c9e5d232b0e0cb228235d7fa9b06015b1c1e9f5 /lib
parenta29b94dd5a34dfdf189a1c1712058ebaab745715 (diff)
downloadexternal_llvm-50c047d159a7f6d9a22e17178576c7ac5178356a.zip
external_llvm-50c047d159a7f6d9a22e17178576c7ac5178356a.tar.gz
external_llvm-50c047d159a7f6d9a22e17178576c7ac5178356a.tar.bz2
Update description.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 7bd3f04..41b3cbd 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -7,11 +7,16 @@
//
//===----------------------------------------------------------------------===//
//
-// This file implements the LiveInterval analysis pass which is used
-// by the Linear Scan Register allocator. This pass linearizes the
-// basic blocks of the function in DFS order and uses the
-// LiveVariables pass to conservatively compute live intervals for
-// each virtual and physical register.
+// This file implements the TwoAddress instruction pass which is used
+// by most register allocators. Two-Address instructions are rewritten
+// from:
+//
+// A = B op C
+//
+// to:
+//
+// A = B
+// A = A op C
//
//===----------------------------------------------------------------------===//