mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[AArch64][SVE] Remove unused function missed from D101302
The functionality in SVEIntrinsicOpts::isReinterpretToSVBool was moved in D101302, however the original now unused function was not removed (NFC). Differential Revision: https://reviews.llvm.org/D101642
This commit is contained in:
parent
f90afcb5c6
commit
e47dc36677
@ -55,8 +55,6 @@ struct SVEIntrinsicOpts : public ModulePass {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override;
|
||||
|
||||
private:
|
||||
static IntrinsicInst *isReinterpretToSVBool(Value *V);
|
||||
|
||||
bool coalescePTrueIntrinsicCalls(BasicBlock &BB,
|
||||
SmallSetVector<IntrinsicInst *, 4> &PTrues);
|
||||
bool optimizePTrueIntrinsicCalls(SmallSetVector<Function *, 4> &Functions);
|
||||
@ -91,19 +89,6 @@ namespace llvm {
|
||||
ModulePass *createSVEIntrinsicOptsPass() { return new SVEIntrinsicOpts(); }
|
||||
} // namespace llvm
|
||||
|
||||
/// Returns V if it's a cast from <n x 16 x i1> (aka svbool_t), nullptr
|
||||
/// otherwise.
|
||||
IntrinsicInst *SVEIntrinsicOpts::isReinterpretToSVBool(Value *V) {
|
||||
IntrinsicInst *I = dyn_cast<IntrinsicInst>(V);
|
||||
if (!I)
|
||||
return nullptr;
|
||||
|
||||
if (I->getIntrinsicID() != Intrinsic::aarch64_sve_convert_to_svbool)
|
||||
return nullptr;
|
||||
|
||||
return I;
|
||||
}
|
||||
|
||||
/// Checks if a ptrue intrinsic call is promoted. The act of promoting a
|
||||
/// ptrue will introduce zeroing. For example:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user