Skip to content

Commit 933d541

Browse files
tclin914丹治秀樹
authored andcommitted
[AMDGPU] Remove unused functions isSigned. NFC (llvm#169750)
These have been unused since llvm#145483.
1 parent 528a498 commit 933d541

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,6 @@ class AMDGPUCodeGenPrepareImpl
143143

144144
bool canBreakPHINode(const PHINode &I);
145145

146-
/// \returns True if binary operation \p I is a signed binary operation, false
147-
/// otherwise.
148-
bool isSigned(const BinaryOperator &I) const;
149-
150-
/// \returns True if the condition of 'select' operation \p I comes from a
151-
/// signed 'icmp' operation, false otherwise.
152-
bool isSigned(const SelectInst &I) const;
153-
154146
/// Return true if \p T is a legal scalar floating point type.
155147
bool isLegalFloatingTy(const Type *T) const;
156148

@@ -304,16 +296,6 @@ bool AMDGPUCodeGenPrepareImpl::run() {
304296
return MadeChange;
305297
}
306298

307-
bool AMDGPUCodeGenPrepareImpl::isSigned(const BinaryOperator &I) const {
308-
return I.getOpcode() == Instruction::AShr ||
309-
I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem;
310-
}
311-
312-
bool AMDGPUCodeGenPrepareImpl::isSigned(const SelectInst &I) const {
313-
return isa<ICmpInst>(I.getOperand(0)) &&
314-
cast<ICmpInst>(I.getOperand(0))->isSigned();
315-
}
316-
317299
bool AMDGPUCodeGenPrepareImpl::isLegalFloatingTy(const Type *Ty) const {
318300
return Ty->isFloatTy() || Ty->isDoubleTy() ||
319301
(Ty->isHalfTy() && ST.has16BitInsts());

0 commit comments

Comments
 (0)