Clarify that InstructionSimplify only returns values that dominate the
authorDuncan Sands <baldrick@free.fr>
Tue, 28 Dec 2010 18:01:19 +0000 (18:01 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 28 Dec 2010 18:01:19 +0000 (18:01 +0000)
original instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122601 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InstructionSimplify.h

index c2812dfd25a25b2822f99e4aa94daaeb8ab1319d..653971377d14e87088d2e9c71b2c12a702fcbb0d 100644 (file)
@@ -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.
 //
 //===----------------------------------------------------------------------===//