-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[H2BLB][TPC] Add the simple cst prop pass
Customize the addition of IR passes in our implementation of TargetPassConfig. This commit adds our custom simple constant propagation pass after all the standard IR passes.
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
; RUN: llc -O0 -mtriple h2blb %s -debug-pass=Structure --stop-before=peephole-opt -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O0 | ||
; RUN: llc -O1 -mtriple h2blb %s -debug-pass=Structure --stop-before=peephole-opt -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-Opt | ||
; RUN: llc -O2 -mtriple h2blb %s -debug-pass=Structure --stop-before=peephole-opt -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-Opt | ||
; RUN: llc -O3 -mtriple h2blb %s -debug-pass=Structure --stop-before=peephole-opt -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-Opt | ||
|
||
; Check that the H2BLB custom codegen pipeline includes the target specific | ||
; simple constant propagation pass, but only when the optimizations are enabled. | ||
|
||
; CHECK-O0-NOT: H2BLB simple constant propagation | ||
; CHECK-Opt: H2BLB simple constant propagation |