-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
125 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
; RUN: if [ %llvmver -lt 16 ]; then %opt < %s %loadEnzyme -jl-inst-simplify -S | FileCheck %s; fi | ||
; RUN: %opt < %s %newLoadEnzyme -passes="jl-inst-simplify" -S | FileCheck %s | ||
|
||
declare i8** @malloc(i64) | ||
|
||
define fastcc i1 @augmented_julia__affine_normalize_1484(i1 %c) { | ||
%i5 = call noalias i8** @malloc(i64 16) | ||
br i1 %c, label %tval, label %fval | ||
|
||
tval: | ||
%j29 = load i8*, i8** %i5, align 8 | ||
br label %end | ||
|
||
fval: | ||
%k29 = load i8*, i8** %i5, align 8 | ||
br label %end | ||
|
||
end: | ||
%i29 = phi i8* [ %j29, %tval ], [ %k29, %fval ] | ||
%i31 = call noalias nonnull i8* addrspace(10)* inttoptr (i64 137352001798896 to i8* addrspace(10)* ({} addrspace(10)*, i64, i64)*)({} addrspace(10)* noundef addrspacecast ({}* inttoptr (i64 137351863426640 to {}*) to {} addrspace(10)*), i64 10, i64 10) | ||
%i35 = load i8*, i8* addrspace(10)* %i31, align 8 | ||
%i39 = icmp ne i8* %i35, %i29 | ||
ret i1 %i39 | ||
} | ||
|
||
; CHECK: ret i1 true |