mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Add a comment mentioning that InstructionSimplify routines do,
in fact, resolve undef uses. llvm-svn: 173721
This commit is contained in:
parent
a3d3900178
commit
4dd335efb1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user