summaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstCombine.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-23 20:42:39 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-23 20:42:39 +0000
commit50f2625b22e05d838ddfa17f6861de78cb5e2779 (patch)
treee1a847bfa4f408b212fe0a7187fafe638d3987a3 /lib/Transforms/InstCombine/InstCombine.h
parentc21a821e9f044004bc504dd7bfdfaecb9d4af16b (diff)
downloadllvm-50f2625b22e05d838ddfa17f6861de78cb5e2779.tar.gz
llvm-50f2625b22e05d838ddfa17f6861de78cb5e2779.tar.bz2
llvm-50f2625b22e05d838ddfa17f6861de78cb5e2779.tar.xz
Rename SimplifyDistributed to the more meaningfull name SimplifyByFactorizing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombine.h')
-rw-r--r--lib/Transforms/InstCombine/InstCombine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/InstCombine/InstCombine.h b/lib/Transforms/InstCombine/InstCombine.h
index b492777a47..f89ea508d5 100644
--- a/lib/Transforms/InstCombine/InstCombine.h
+++ b/lib/Transforms/InstCombine/InstCombine.h
@@ -290,11 +290,11 @@ private:
/// operators which are associative or commutative.
bool SimplifyAssociativeOrCommutative(BinaryOperator &I);
- /// SimplifyDistributed - This tries to simplify binary operations which some
- /// other binary operation distributes over (eg "A*B+A*C" -> "A*(B+C)" since
- /// addition is distributed over by multiplication). Returns the result of
- /// the simplification, or null if no simplification was performed.
- Instruction *SimplifyDistributed(BinaryOperator &I);
+ /// SimplifyByFactorizing - This tries to simplify binary operations which
+ /// some other binary operation distributes over by factorizing out a common
+ /// term (eg "(A*B)+(A*C)" -> "A*(B+C)"). Returns the simplified value, or
+ /// null if no simplification was performed.
+ Instruction *SimplifyByFactorizing(BinaryOperator &I);
/// SimplifyDemandedUseBits - Attempts to replace V with a simpler value
/// based on the demanded bits.