diff options
| author | Dan Gohman <dan433584@gmail.com> | 2013-01-28 21:45:32 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2013-01-28 21:45:32 +0000 |
| commit | 00830962c6d4aa4d2520e0179e9cf182e8013b59 (patch) | |
| tree | 455906b32b25edfc1b421aa11aaca4ba9b93f64a /llvm/include | |
| parent | 35630ec93a0fa705523a0a2606a5ecd2052965ea (diff) | |
| download | bcm5719-llvm-00830962c6d4aa4d2520e0179e9cf182e8013b59.tar.gz bcm5719-llvm-00830962c6d4aa4d2520e0179e9cf182e8013b59.zip | |
Add a comment mentioning that InstructionSimplify routines do,
in fact, resolve undef uses.
llvm-svn: 173721
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/InstructionSimplify.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/InstructionSimplify.h b/llvm/include/llvm/Analysis/InstructionSimplify.h index b653e799f7c..06e44329676 100644 --- a/llvm/include/llvm/Analysis/InstructionSimplify.h +++ b/llvm/include/llvm/Analysis/InstructionSimplify.h @@ -14,6 +14,12 @@ // ("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 |

