summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-14 18:36:10 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-14 18:36:10 +0000
commiteff0581583ef10e2872e9baf537a04b67d992101 (patch)
tree4aff00b570f7058263f492f0ec91f8e59119547a /include/llvm/Instructions.h
parent0094345184bc0a791f0811c8d7f5b6f9c8296e0f (diff)
downloadllvm-eff0581583ef10e2872e9baf537a04b67d992101.tar.gz
llvm-eff0581583ef10e2872e9baf537a04b67d992101.tar.bz2
llvm-eff0581583ef10e2872e9baf537a04b67d992101.tar.xz
If dom tree information is available, make it possible to pass
it to get better phi node simplification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index fd300ea47a..91f7729a11 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -1952,7 +1952,7 @@ public:
/// value dominates the PHI. If DT is null, use a conservative check,
/// otherwise use DT to test for dominance.
///
- Value *hasConstantValue(DominatorTree *DT = 0) const;
+ Value *hasConstantValue(const DominatorTree *DT = 0) const;
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const PHINode *) { return true; }