Add a comment mentioning that InstructionSimplify routines do,
authorDan Gohman <dan433584@gmail.com>
Mon, 28 Jan 2013 21:45:32 +0000 (21:45 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 28 Jan 2013 21:45:32 +0000 (21:45 +0000)
in fact, resolve undef uses.

llvm-svn: 173721

llvm/include/llvm/Analysis/InstructionSimplify.h

index b653e79..06e4432 100644 (file)
 // ("and i32 %x, %x" -> "%x").  If the simplification is also an instruction
 // then it dominates the original instruction.
 //
+// These routines implicitly resolve undef uses. The easiest way to be safe when
+// using these routines to obtain simplified values for existing instructions is
+// to always replace all uses of the instructions with the resulting simplified
+// values. This will prevent other code from seeing the same undef uses and
+// resolving them to different values.
+//
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_ANALYSIS_INSTRUCTIONSIMPLIFY_H