diff options
author | Duncan Sands <baldrick@free.fr> | 2010-11-23 20:42:39 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-11-23 20:42:39 +0000 |
commit | 50f2625b22e05d838ddfa17f6861de78cb5e2779 (patch) | |
tree | e1a847bfa4f408b212fe0a7187fafe638d3987a3 /lib/Transforms/InstCombine/InstCombineAddSub.cpp | |
parent | c21a821e9f044004bc504dd7bfdfaecb9d4af16b (diff) |
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/InstCombineAddSub.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineAddSub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/lib/Transforms/InstCombine/InstCombineAddSub.cpp index b2919d8833..26679a2189 100644 --- a/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/lib/Transforms/InstCombine/InstCombineAddSub.cpp @@ -91,7 +91,7 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) { I.hasNoUnsignedWrap(), TD)) return ReplaceInstUsesWith(I, V); - if (Instruction *NV = SimplifyDistributed(I)) // (A*B)+(A*C) -> A*(B+C) + if (Instruction *NV = SimplifyByFactorizing(I)) // (A*B)+(A*C) -> A*(B+C) return NV; if (Constant *RHSC = dyn_cast<Constant>(RHS)) { @@ -550,7 +550,7 @@ Instruction *InstCombiner::visitSub(BinaryOperator &I) { if (Op0 == Op1) // sub X, X -> 0 return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType())); - if (Instruction *NV = SimplifyDistributed(I)) // (A*B)-(A*C) -> A*(B-C) + if (Instruction *NV = SimplifyByFactorizing(I)) // (A*B)-(A*C) -> A*(B-C) return NV; // If this is a 'B = x-(-A)', change to B = x+A. This preserves NSW/NUW. |