mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Make helper functions static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212460 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -961,8 +961,8 @@ bool InstCombiner::WillNotOverflowUnsignedAdd(Value *LHS, Value *RHS) {
|
||||
// ADD(XOR(OR(Z, NOT(C)), C)), 1) == NEG(AND(Z, C))
|
||||
// ADD(XOR(AND(Z, C), C), 1) == NEG(OR(Z, ~C))
|
||||
// XOR(AND(Z, C), (C + 1)) == NEG(OR(Z, ~C)) if C is even
|
||||
Value *checkForNegativeOperand(BinaryOperator &I,
|
||||
InstCombiner::BuilderTy *Builder) {
|
||||
static Value *checkForNegativeOperand(BinaryOperator &I,
|
||||
InstCombiner::BuilderTy *Builder) {
|
||||
Value *LHS = I.getOperand(0), *RHS = I.getOperand(1);
|
||||
|
||||
// This function creates 2 instructions to replace ADD, we need at least one
|
||||
|
||||
Reference in New Issue
Block a user