mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
[PM] Reformat this code with clang-format so that subsequent changes
don't get muddied up by formatting changes. Some of these don't really seem like improvements to me, but they also don't seem any worse and I care much more about not formatting them manually than I do about the particular formatting. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -340,7 +340,7 @@ public:
|
|||||||
V = UndefValue::get(I.getType());
|
V = UndefValue::get(I.getType());
|
||||||
|
|
||||||
DEBUG(dbgs() << "IC: Replacing " << I << "\n"
|
DEBUG(dbgs() << "IC: Replacing " << I << "\n"
|
||||||
" with " << *V << '\n');
|
<< " with " << *V << '\n');
|
||||||
|
|
||||||
I.replaceAllUsesWith(V);
|
I.replaceAllUsesWith(V);
|
||||||
return &I;
|
return &I;
|
||||||
@@ -388,8 +388,7 @@ public:
|
|||||||
DT);
|
DT);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MaskedValueIsZero(Value *V, const APInt &Mask,
|
bool MaskedValueIsZero(Value *V, const APInt &Mask, unsigned Depth = 0,
|
||||||
unsigned Depth = 0,
|
|
||||||
Instruction *CxtI = nullptr) const {
|
Instruction *CxtI = nullptr) const {
|
||||||
return llvm::MaskedValueIsZero(V, Mask, DL, Depth, AC, CxtI, DT);
|
return llvm::MaskedValueIsZero(V, Mask, DL, Depth, AC, CxtI, DT);
|
||||||
}
|
}
|
||||||
@@ -416,7 +415,8 @@ private:
|
|||||||
/// or commutative.
|
/// or commutative.
|
||||||
bool SimplifyAssociativeOrCommutative(BinaryOperator &I);
|
bool SimplifyAssociativeOrCommutative(BinaryOperator &I);
|
||||||
|
|
||||||
/// \brief Tries to simplify binary operations which some other binary operation distributes over.
|
/// \brief Tries to simplify binary operations which some other binary
|
||||||
|
/// operation distributes over.
|
||||||
///
|
///
|
||||||
/// It does this by either by factorizing out common terms (eg "(A*B)+(A*C)"
|
/// It does this by either by factorizing out common terms (eg "(A*B)+(A*C)"
|
||||||
/// -> "A*(B+C)") or expanding out if this results in simplifications (eg: "A
|
/// -> "A*(B+C)") or expanding out if this results in simplifications (eg: "A
|
||||||
|
|||||||
Reference in New Issue
Block a user