mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Remove constant propogation support for NOT instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20e8e01c5d
commit
f4e3c006ac
@ -62,9 +62,6 @@ protected:
|
||||
public:
|
||||
static AnnotationID AID; // AnnotationID for this class
|
||||
|
||||
// Unary Operators...
|
||||
virtual Constant *op_not(const Constant *V) const = 0;
|
||||
|
||||
// Binary Operators...
|
||||
virtual Constant *add(const Constant *V1, const Constant *V2) const = 0;
|
||||
virtual Constant *sub(const Constant *V1, const Constant *V2) const = 0;
|
||||
@ -128,11 +125,6 @@ private :
|
||||
};
|
||||
|
||||
|
||||
inline Constant *operator~(const Constant &V) {
|
||||
return ConstRules::get(V)->op_not(&V);
|
||||
}
|
||||
|
||||
|
||||
// Standard binary operators...
|
||||
inline Constant *operator+(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType() == V2.getType() && "Constant types must be identical!");
|
||||
@ -224,7 +216,6 @@ Constant *ConstantFoldInstruction(Instruction *I);
|
||||
|
||||
// Constant fold various types of instruction...
|
||||
Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy);
|
||||
Constant *ConstantFoldUnaryInstruction(unsigned Opcode, const Constant *V);
|
||||
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
|
||||
const Constant *V2);
|
||||
Constant *ConstantFoldShiftInstruction(unsigned Opcode, const Constant *V1,
|
||||
|
@ -62,9 +62,6 @@ protected:
|
||||
public:
|
||||
static AnnotationID AID; // AnnotationID for this class
|
||||
|
||||
// Unary Operators...
|
||||
virtual Constant *op_not(const Constant *V) const = 0;
|
||||
|
||||
// Binary Operators...
|
||||
virtual Constant *add(const Constant *V1, const Constant *V2) const = 0;
|
||||
virtual Constant *sub(const Constant *V1, const Constant *V2) const = 0;
|
||||
@ -128,11 +125,6 @@ private :
|
||||
};
|
||||
|
||||
|
||||
inline Constant *operator~(const Constant &V) {
|
||||
return ConstRules::get(V)->op_not(&V);
|
||||
}
|
||||
|
||||
|
||||
// Standard binary operators...
|
||||
inline Constant *operator+(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType() == V2.getType() && "Constant types must be identical!");
|
||||
@ -224,7 +216,6 @@ Constant *ConstantFoldInstruction(Instruction *I);
|
||||
|
||||
// Constant fold various types of instruction...
|
||||
Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy);
|
||||
Constant *ConstantFoldUnaryInstruction(unsigned Opcode, const Constant *V);
|
||||
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
|
||||
const Constant *V2);
|
||||
Constant *ConstantFoldShiftInstruction(unsigned Opcode, const Constant *V1,
|
||||
|
@ -62,9 +62,6 @@ protected:
|
||||
public:
|
||||
static AnnotationID AID; // AnnotationID for this class
|
||||
|
||||
// Unary Operators...
|
||||
virtual Constant *op_not(const Constant *V) const = 0;
|
||||
|
||||
// Binary Operators...
|
||||
virtual Constant *add(const Constant *V1, const Constant *V2) const = 0;
|
||||
virtual Constant *sub(const Constant *V1, const Constant *V2) const = 0;
|
||||
@ -128,11 +125,6 @@ private :
|
||||
};
|
||||
|
||||
|
||||
inline Constant *operator~(const Constant &V) {
|
||||
return ConstRules::get(V)->op_not(&V);
|
||||
}
|
||||
|
||||
|
||||
// Standard binary operators...
|
||||
inline Constant *operator+(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType() == V2.getType() && "Constant types must be identical!");
|
||||
@ -224,7 +216,6 @@ Constant *ConstantFoldInstruction(Instruction *I);
|
||||
|
||||
// Constant fold various types of instruction...
|
||||
Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy);
|
||||
Constant *ConstantFoldUnaryInstruction(unsigned Opcode, const Constant *V);
|
||||
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
|
||||
const Constant *V2);
|
||||
Constant *ConstantFoldShiftInstruction(unsigned Opcode, const Constant *V1,
|
||||
|
Loading…
Reference in New Issue
Block a user