summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/InstructionSimplify.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-12-28 18:01:19 +0000
committerDuncan Sands <baldrick@free.fr>2010-12-28 18:01:19 +0000
commit19f14dcf6af11b5520acfc5c2fd4100ec1972b44 (patch)
treedb1cf80e12608e5ff00a3d8f6b85cfa6afb06ece /include/llvm/Analysis/InstructionSimplify.h
parent9bc6a90146417af03144fa2f7dd94f9945b57c06 (diff)
downloadllvm-19f14dcf6af11b5520acfc5c2fd4100ec1972b44.tar.gz
llvm-19f14dcf6af11b5520acfc5c2fd4100ec1972b44.tar.bz2
llvm-19f14dcf6af11b5520acfc5c2fd4100ec1972b44.tar.xz
Clarify that InstructionSimplify only returns values that dominate the
original instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/InstructionSimplify.h')
-rw-r--r--include/llvm/Analysis/InstructionSimplify.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h
index c2812dfd25..653971377d 100644
--- a/include/llvm/Analysis/InstructionSimplify.h
+++ b/include/llvm/Analysis/InstructionSimplify.h
@@ -11,7 +11,8 @@
// 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").
+// ("and i32 %x, %x" -> "%x"). If the simplification is also an instruction
+// then it dominates the original instruction.
//
//===----------------------------------------------------------------------===//