projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee997b
)
Expose constant prop of an instruction
author
Chris Lattner
<sabre@nondot.org>
Mon, 26 Nov 2001 18:50:11 +0000
(18:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 26 Nov 2001 18:50:11 +0000
(18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1367
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Transforms/Scalar/ConstantProp.h
patch
|
blob
|
history
diff --git
a/include/llvm/Transforms/Scalar/ConstantProp.h
b/include/llvm/Transforms/Scalar/ConstantProp.h
index f094ec5496f538b5e6df117b28e4868522b256c6..e77a9c060062897d11595d93cd5f6915fad1ac5a 100644
(file)
--- a/
include/llvm/Transforms/Scalar/ConstantProp.h
+++ b/
include/llvm/Transforms/Scalar/ConstantProp.h
@@
-17,6
+17,11
@@
struct ConstantPropogation : public Pass {
// folding
static bool doConstantPropogation(Method *M);
+ // doConstantPropogation - Constant prop a specific instruction. Returns true
+ // and potentially moves the iterator if constant propogation was performed.
+ //
+ static bool doConstantPropogation(BasicBlock *BB, BasicBlock::iterator &I);
+
inline bool doPerMethodWork(Method *M) {
return doConstantPropogation(M);
}