Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[flang] Run algebraic simplification optimization pass."
This reverts commit 4fbd1d6.
- Loading branch information
Showing
12 changed files
with
81 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
flang/lib/Optimizer/Transforms/AlgebraicSimplification.cpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,35 @@ | ||
! Test the MLIR pass pipeline | ||
|
||
! RUN: %flang_fc1 -S -mmlir --mlir-pass-statistics -mmlir --mlir-pass-statistics-display=pipeline -o /dev/null %s 2>&1 | FileCheck --check-prefixes=ALL %s | ||
! -O0 is the default: | ||
! RUN: %flang_fc1 -S -mmlir --mlir-pass-statistics -mmlir --mlir-pass-statistics-display=pipeline %s -O0 -o /dev/null 2>&1 | FileCheck --check-prefixes=ALL %s | ||
! RUN: %flang_fc1 -S -mmlir --mlir-pass-statistics -mmlir --mlir-pass-statistics-display=pipeline %s -O2 -o /dev/null 2>&1 | FileCheck --check-prefixes=ALL,O2 %s | ||
! RUN: %flang_fc1 -S -mmlir --mlir-pass-statistics -mmlir --mlir-pass-statistics-display=pipeline %s -o - 2>&1 | FileCheck %s | ||
end program | ||
|
||
! ALL: Pass statistics report | ||
|
||
! ALL: Fortran::lower::VerifierPass | ||
! ALL-NEXT: CSE | ||
! Ideally, we need an output with only the pass names, but | ||
! there is currently no way to get that, so in order to | ||
! guarantee that the passes are in the expected order | ||
! (i.e. use -NEXT) we have to check the statistics output as well. | ||
! ALL-NEXT: (S) 0 num-cse'd - Number of operations CSE'd | ||
! ALL-NEXT: (S) 0 num-dce'd - Number of operations DCE'd | ||
|
||
! ALL-NEXT: 'func.func' Pipeline | ||
! ALL-NEXT: ArrayValueCopy | ||
! ALL-NEXT: CharacterConversion | ||
|
||
! ALL-NEXT: Canonicalizer | ||
! ALL-NEXT: SimplifyRegionLite | ||
! O2-NEXT: AlgebraicSimplification | ||
! ALL-NEXT: CSE | ||
! ALL-NEXT: (S) 0 num-cse'd - Number of operations CSE'd | ||
! ALL-NEXT: (S) 0 num-dce'd - Number of operations DCE'd | ||
|
||
! ALL-NEXT: 'func.func' Pipeline | ||
! ALL-NEXT: MemoryAllocationOpt | ||
|
||
! ALL-NEXT: Inliner | ||
! ALL-NEXT: CSE | ||
! ALL-NEXT: (S) 0 num-cse'd - Number of operations CSE'd | ||
! ALL-NEXT: (S) 0 num-dce'd - Number of operations DCE'd | ||
|
||
! ALL-NEXT: 'func.func' Pipeline | ||
! ALL-NEXT: CFGConversion | ||
|
||
! ALL-NEXT: SCFToControlFlow | ||
! ALL-NEXT: Canonicalizer | ||
! ALL-NEXT: SimplifyRegionLite | ||
! ALL-NEXT: CSE | ||
! ALL-NEXT: (S) 0 num-cse'd - Number of operations CSE'd | ||
! ALL-NEXT: (S) 0 num-dce'd - Number of operations DCE'd | ||
! ALL-NEXT: BoxedProcedurePass | ||
|
||
! ALL-NEXT: 'func.func' Pipeline | ||
! ALL-NEXT: AbstractResultOpt | ||
|
||
! ALL-NEXT: CodeGenRewrite | ||
! ALL-NEXT: (S) 0 num-dce'd - Number of operations eliminated | ||
! ALL-NEXT: TargetRewrite | ||
! ALL-NEXT: ExternalNameConversion | ||
! ALL-NEXT: FIRToLLVMLowering | ||
! ALL-NOT: LLVMIRLoweringPass | ||
! CHECK: Pass statistics report | ||
|
||
! CHECK: CSE | ||
! CHECK-LABEL: 'func.func' Pipeline | ||
! CHECK: ArrayValueCopy | ||
! CHECK: CharacterConversion | ||
! CHECK: Canonicalizer | ||
! CHECK: SimplifyRegionLite | ||
! CHECK: CSE | ||
|
||
! CHECK-LABEL: 'func.func' Pipeline | ||
! CHECK: MemoryAllocationOpt | ||
! CHECK: Inliner | ||
! CHECK: CSE | ||
|
||
! CHECK-LABEL: 'func.func' Pipeline | ||
! CHECK: CFGConversion | ||
! CHECK: SCFToControlFlow | ||
! CHECK: Canonicalizer | ||
! CHECK: SimplifyRegionLite | ||
! CHECK: CSE | ||
! CHECK: BoxedProcedurePass | ||
|
||
! CHECK-LABEL: 'func.func' Pipeline | ||
! CHECK: AbstractResultOpt | ||
! CHECK: CodeGenRewrite | ||
! CHECK: TargetRewrite | ||
! CHECK: ExternalNameConversion | ||
! CHECK: FIRToLLVMLowering | ||
! CHECK-NOT: LLVMIRLoweringPass |
Oops, something went wrong.