Document another instsimplify assumption.
authorDan Gohman <dan433584@gmail.com>
Thu, 31 Jan 2013 22:13:00 +0000 (22:13 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 31 Jan 2013 22:13:00 +0000 (22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174100 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InstructionSimplify.h

index 06e443296761d0782be6dfb0a008aebf69e4a7ab..d760a4cba1cfbafa8bed4a3fc89f43d77556ff82 100644 (file)
 // values. This will prevent other code from seeing the same undef uses and
 // resolving them to different values.
 //
+// These routines are designed to tolerate moderately incomplete IR, such as
+// instructions that are not connected to basic blocks yet. However, they do
+// require that all the IR that they encounter be valid. In particular, they
+// require that all non-constant values be defined in the same function, and the
+// same call context of that function (and not split between caller and callee
+// contexts of a directly recursive call, for example).
+//
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_ANALYSIS_INSTRUCTIONSIMPLIFY_H