File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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-
317299bool AMDGPUCodeGenPrepareImpl::isLegalFloatingTy (const Type *Ty) const {
318300 return Ty->isFloatTy () || Ty->isDoubleTy () ||
319301 (Ty->isHalfTy () && ST.has16BitInsts ());
You can’t perform that action at this time.
0 commit comments