Skip to content

Commit c981f6f

Browse files
committed
Revert "[Codegen][ReplaceWithVecLib] add pass to replace vector intrinsics with calls to vector library"
This reverts commit 2303e93. Investigating bot failures.
1 parent 3c767b9 commit c981f6f

File tree

15 files changed

+0
-422
lines changed

15 files changed

+0
-422
lines changed

llvm/include/llvm/CodeGen/CodeGenPassBuilder.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "llvm/CodeGen/MachineModuleInfo.h"
3030
#include "llvm/CodeGen/MachinePassManager.h"
3131
#include "llvm/CodeGen/PreISelIntrinsicLowering.h"
32-
#include "llvm/CodeGen/ReplaceWithVeclib.h"
3332
#include "llvm/CodeGen/UnreachableBlockElim.h"
3433
#include "llvm/IR/IRPrintingPasses.h"
3534
#include "llvm/IR/PassManager.h"
@@ -651,12 +650,6 @@ void CodeGenPassBuilder<Derived>::addIRPasses(AddIRPass &addPass) const {
651650
if (getOptLevel() != CodeGenOpt::None && !Opt.DisableConstantHoisting)
652651
addPass(ConstantHoistingPass());
653652

654-
if (getOptLevel() != CodeGenOpt::None) {
655-
// Replace calls to LLVM intrinsics (e.g., exp, log) operating on vector
656-
// operands with calls to the corresponding functions in a vector library.
657-
addPass(ReplaceWithVeclib());
658-
}
659-
660653
if (getOptLevel() != CodeGenOpt::None && !Opt.DisablePartialLibcallInlining)
661654
addPass(PartiallyInlineLibCallsPass());
662655

llvm/include/llvm/CodeGen/MachinePassRegistry.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ FUNCTION_PASS("mergeicmps", MergeICmpsPass, ())
3939
FUNCTION_PASS("lower-constant-intrinsics", LowerConstantIntrinsicsPass, ())
4040
FUNCTION_PASS("unreachableblockelim", UnreachableBlockElimPass, ())
4141
FUNCTION_PASS("consthoist", ConstantHoistingPass, ())
42-
FUNCTION_PASS("replace-with-veclib", ReplaceWithVeclib, ())
4342
FUNCTION_PASS("partially-inline-libcalls", PartiallyInlineLibCallsPass, ())
4443
FUNCTION_PASS("ee-instrument", EntryExitInstrumenterPass, (false))
4544
FUNCTION_PASS("post-inline-ee-instrument", EntryExitInstrumenterPass, (true))

llvm/include/llvm/CodeGen/Passes.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,6 @@ namespace llvm {
448448
/// shuffles.
449449
FunctionPass *createExpandReductionsPass();
450450

451-
// This pass replaces intrinsics operating on vector operands with calls to
452-
// the corresponding function in a vector library (e.g., SVML, libmvec).
453-
FunctionPass *createReplaceWithVeclibLegacyPass();
454-
455451
// This pass expands memcmp() to load/stores.
456452
FunctionPass *createExpandMemCmpPass();
457453

llvm/include/llvm/CodeGen/ReplaceWithVeclib.h

Lines changed: 0 additions & 38 deletions
This file was deleted.

llvm/include/llvm/InitializePasses.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ void initializeRegionPrinterPass(PassRegistry&);
380380
void initializeRegionViewerPass(PassRegistry&);
381381
void initializeRegisterCoalescerPass(PassRegistry&);
382382
void initializeRenameIndependentSubregsPass(PassRegistry&);
383-
void initializeReplaceWithVeclibLegacyPass(PassRegistry &);
384383
void initializeResetMachineFunctionPass(PassRegistry&);
385384
void initializeReversePostOrderFunctionAttrsLegacyPassPass(PassRegistry&);
386385
void initializeRewriteStatepointsForGCLegacyPassPass(PassRegistry &);

llvm/lib/CodeGen/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ add_llvm_component_library(LLVMCodeGen
147147
RegisterUsageInfo.cpp
148148
RegUsageInfoCollector.cpp
149149
RegUsageInfoPropagate.cpp
150-
ReplaceWithVeclib.cpp
151150
ResetMachineFunctionPass.cpp
152151
SafeStack.cpp
153152
SafeStackLayout.cpp

llvm/lib/CodeGen/ReplaceWithVeclib.cpp

Lines changed: 0 additions & 256 deletions
This file was deleted.

llvm/lib/CodeGen/TargetPassConfig.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,6 @@ void TargetPassConfig::addIRPasses() {
858858
if (getOptLevel() != CodeGenOpt::None && !DisableConstantHoisting)
859859
addPass(createConstantHoistingPass());
860860

861-
if (getOptLevel() != CodeGenOpt::None)
862-
addPass(createReplaceWithVeclibLegacyPass());
863-
864861
if (getOptLevel() != CodeGenOpt::None && !DisablePartialLibcallInlining)
865862
addPass(createPartiallyInlineLibCallsPass());
866863

llvm/test/CodeGen/AArch64/O3-pipeline.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
; CHECK-NEXT: Branch Probability Analysis
5555
; CHECK-NEXT: Block Frequency Analysis
5656
; CHECK-NEXT: Constant Hoisting
57-
; CHECK-NEXT: Replace intrinsics with calls to vector library
5857
; CHECK-NEXT: Partially inline calls to library functions
5958
; CHECK-NEXT: Instrument function entry/exit with calls to e.g. mcount() (post inlining)
6059
; CHECK-NEXT: Scalarize Masked Memory Intrinsics

llvm/test/CodeGen/ARM/O3-pipeline.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
; CHECK-NEXT: Branch Probability Analysis
3535
; CHECK-NEXT: Block Frequency Analysis
3636
; CHECK-NEXT: Constant Hoisting
37-
; CHECK-NEXT: Replace intrinsics with calls to vector library
3837
; CHECK-NEXT: Partially inline calls to library functions
3938
; CHECK-NEXT: Instrument function entry/exit with calls to e.g. mcount() (post inlining)
4039
; CHECK-NEXT: Scalarize Masked Memory Intrinsics

0 commit comments

Comments
 (0)