diff options
author | Duncan Sands <baldrick@free.fr> | 2010-11-23 10:50:08 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-11-23 10:50:08 +0000 |
commit | a021988d64114c7c2d4ed7d086a5048ea6f112fe (patch) | |
tree | 5b803a092b8d352d920e6ea22c6cb89817de7fc1 /llvm/lib/Analysis | |
parent | 763dec0ab8512b051e87e71b59652853c4aa4839 (diff) | |
download | bcm5719-llvm-a021988d64114c7c2d4ed7d086a5048ea6f112fe.tar.gz bcm5719-llvm-a021988d64114c7c2d4ed7d086a5048ea6f112fe.zip |
Expand a little on the description of what InstructionSimplify does.
llvm-svn: 120016
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index 4b6320bb46a..ac21a9ae20b 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -8,8 +8,10 @@ //===----------------------------------------------------------------------===// // // This file implements routines for folding instructions into simpler forms -// that do not require creating new instructions. For example, this does -// constant folding, and can handle identities like (X&0)->0. +// that do not require creating new instructions. This does constant folding +// ("add i32 1, 1" -> "2") but can also handle non-constant operands, either +// returning a constant ("and i32 %x, 0" -> "0") or an already existing value +// ("and i32 %x, %x" -> "%x"). // //===----------------------------------------------------------------------===// |