-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test][InstCombine] Update some test cases to use opaque pointers
These tests cases were converted using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 Differential Revision: https://reviews.llvm.org/D135094
- Loading branch information
Showing
601 changed files
with
11,298 additions
and
12,177 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
llvm/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll
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,10 +1,10 @@ | ||
; RUN: opt < %s -passes=instcombine -disable-output | ||
|
||
@X = global i32 5 ; <i32*> [#uses=1] | ||
@X = global i32 5 ; <ptr> [#uses=1] | ||
|
||
define i64 @test() { | ||
%C = add i64 1, 2 ; <i64> [#uses=1] | ||
%V = add i64 ptrtoint (i32* @X to i64), %C ; <i64> [#uses=1] | ||
%V = add i64 ptrtoint (ptr @X to i64), %C ; <i64> [#uses=1] | ||
ret i64 %V | ||
} | ||
|
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
4 changes: 2 additions & 2 deletions
4
llvm/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll
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,7 +1,7 @@ | ||
; RUN: opt < %s -passes=instcombine -S | grep load | ||
|
||
define void @test(i32* %P) { | ||
define void @test(ptr %P) { | ||
; Dead but not deletable! | ||
%X = load volatile i32, i32* %P ; <i32> [#uses=0] | ||
%X = load volatile i32, ptr %P ; <i32> [#uses=0] | ||
ret void | ||
} |
14 changes: 7 additions & 7 deletions
14
llvm/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll
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,18 +1,18 @@ | ||
; RUN: opt < %s -passes=instcombine -disable-output | ||
|
||
declare i32* @bar() | ||
declare ptr @bar() | ||
|
||
define float* @foo() personality i32 (...)* @__gxx_personality_v0 { | ||
%tmp.11 = invoke float* bitcast (i32* ()* @bar to float* ()*)( ) | ||
to label %invoke_cont unwind label %X ; <float*> [#uses=1] | ||
define ptr @foo() personality ptr @__gxx_personality_v0 { | ||
%tmp.11 = invoke ptr @bar( ) | ||
to label %invoke_cont unwind label %X ; <ptr> [#uses=1] | ||
|
||
invoke_cont: ; preds = %0 | ||
ret float* %tmp.11 | ||
ret ptr %tmp.11 | ||
|
||
X: ; preds = %0 | ||
%exn = landingpad {i8*, i32} | ||
%exn = landingpad {ptr, i32} | ||
cleanup | ||
ret float* null | ||
ret ptr null | ||
} | ||
|
||
declare i32 @__gxx_personality_v0(...) |
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
4 changes: 2 additions & 2 deletions
4
llvm/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll
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,9 +1,9 @@ | ||
; RUN: opt < %s -passes=instcombine -disable-output | ||
|
||
@p = weak global i32 0 ; <i32*> [#uses=1] | ||
@p = weak global i32 0 ; <ptr> [#uses=1] | ||
|
||
define i32 @test(i32 %x) { | ||
%y = mul i32 %x, ptrtoint (i32* @p to i32) ; <i32> [#uses=1] | ||
%y = mul i32 %x, ptrtoint (ptr @p to i32) ; <i32> [#uses=1] | ||
ret i32 %y | ||
} | ||
|
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
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
Oops, something went wrong.