diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-24 23:44:12 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-24 23:44:12 +0000 |
commit | bd0f144cc2549e8c2f853ea0a914abd0aa29444f (patch) | |
tree | 845779e4829b0feeb9afd9a3dde719e9f96ddbcc /lib/CodeGen/LowerSubregs.cpp | |
parent | ca57f78332eb0faae549b233662e38fbf8e09a0f (diff) | |
download | llvm-bd0f144cc2549e8c2f853ea0a914abd0aa29444f.tar.gz llvm-bd0f144cc2549e8c2f853ea0a914abd0aa29444f.tar.bz2 llvm-bd0f144cc2549e8c2f853ea0a914abd0aa29444f.tar.xz |
Give LowerSubregs.cpp a top-level description.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LowerSubregs.cpp')
-rw-r--r-- | lib/CodeGen/LowerSubregs.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/LowerSubregs.cpp b/lib/CodeGen/LowerSubregs.cpp index 00038d5c1c..f9cef4ccfb 100644 --- a/lib/CodeGen/LowerSubregs.cpp +++ b/lib/CodeGen/LowerSubregs.cpp @@ -6,6 +6,13 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// +// +// This file defines a MachineFunction pass which runs after register +// allocation that turns subreg insert/extract instructions into register +// copies, as needed. This ensures correct codegen even if the coalescer +// isn't able to remove all subreg instructions. +// +//===----------------------------------------------------------------------===// #define DEBUG_TYPE "lowersubregs" #include "llvm/CodeGen/Passes.h" |