[llvm-commits] [llvm] r122601 - /llvm/trunk/include/llvm/Analysis/InstructionSimplify.h

Duncan Sands baldrick at free.fr
Tue Dec 28 10:01:19 PST 2010


Author: baldrick
Date: Tue Dec 28 12:01:19 2010
New Revision: 122601

URL: http://llvm.org/viewvc/llvm-project?rev=122601&view=rev
Log:
Clarify that InstructionSimplify only returns values that dominate the
original instruction.

Modified:
    llvm/trunk/include/llvm/Analysis/InstructionSimplify.h

Modified: llvm/trunk/include/llvm/Analysis/InstructionSimplify.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/InstructionSimplify.h?rev=122601&r1=122600&r2=122601&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/InstructionSimplify.h (original)
+++ llvm/trunk/include/llvm/Analysis/InstructionSimplify.h Tue Dec 28 12:01:19 2010
@@ -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.
 //
 //===----------------------------------------------------------------------===//
 





More information about the llvm-commits mailing list