diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-12-03 02:31:43 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-12-03 02:31:43 +0000 |
commit | 229694f0ee630ceabe96a8bd48952f6740f928b2 (patch) | |
tree | ed69406bce00ef30baf875efa8be6db78db24257 /include/llvm/CodeGen/MachineInstr.h | |
parent | cb06403145eb7f18457f98077ee64c629a9ad82a (diff) |
Fill out codegen SSA updater. It's not yet tested.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index c620449401..87b67d6242 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -320,6 +320,11 @@ public: /// loads the instruction does are invariant (if it does multiple loads). bool isInvariantLoad(AliasAnalysis *AA) const; + /// isConstantValuePHI - If the specified instruction is a PHI that always + /// merges together the same virtual register, return the register, otherwise + /// return 0. + unsigned isConstantValuePHI() const; + // // Debugging support // |