-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Scalarize the vector inputs to llvm.lround intrinsic by default. #101054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e2b0e86
Scalarize the vector inputs to llvm.lround intrinsic by default.
sgundapa 657e054
llvm.lround: Update verifier to validate support of vector types.
sgundapa cd1f2fa
Update doc for llvm.lround
sgundapa ad36d87
Addressed reviwer's comment.
sgundapa 65b8203
Updated the lit test.
sgundapa 34424e6
Revert "Addressed reviwer's comment."
sgundapa 0ad644f
Revert "Update doc for llvm.lround"
sgundapa 2fc26e4
Revert "llvm.lround: Update verifier to validate support of vector ty…
sgundapa fdc68e1
Remove TTI cost computation case as per comment.
sgundapa d1c32de
Update variable name in lit test
sgundapa 2048676
llvm.lround: Update verifier to validate support of vector types. (#9…
sgundapa d34a4f9
Resolve conflicts
sgundapa a7aede6
Resolve conflicts
sgundapa 9092484
Fix the tests after solving conflicts
sgundapa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
; Validate that vector types are accepted for llvm.lround/llvm.llround intrinsic | ||
; RUN: llvm-as < %s | llvm-dis | FileCheck %s | ||
|
||
define <2 x i32> @intrinsic_lround_v2i32_v2f32(<2 x float> %arg) { | ||
;CHECK: %res = tail call <2 x i32> @llvm.lround.v2i32.v2f32(<2 x float> %arg) | ||
%res = tail call <2 x i32> @llvm.lround.v2i32.v2f32(<2 x float> %arg) | ||
ret <2 x i32> %res | ||
} | ||
|
||
define <2 x i32> @intrinsic_llround_v2i32_v2f32(<2 x float> %arg) { | ||
;CHECK: %res = tail call <2 x i32> @llvm.llround.v2i32.v2f32(<2 x float> %arg) | ||
%res = tail call <2 x i32> @llvm.llround.v2i32.v2f32(<2 x float> %arg) | ||
ret <2 x i32> %res | ||
} | ||
|
||
define <2 x i64> @intrinsic_lround_v2i64_v2f32(<2 x float> %arg) { | ||
;CHECK: %res = tail call <2 x i64> @llvm.lround.v2i64.v2f32(<2 x float> %arg) | ||
%res = tail call <2 x i64> @llvm.lround.v2i64.v2f32(<2 x float> %arg) | ||
ret <2 x i64> %res | ||
} | ||
|
||
define <2 x i64> @intrinsic_llround_v2i64_v2f32(<2 x float> %arg) { | ||
;CHECK: %res = tail call <2 x i64> @llvm.llround.v2i64.v2f32(<2 x float> %arg) | ||
%res = tail call <2 x i64> @llvm.llround.v2i64.v2f32(<2 x float> %arg) | ||
ret <2 x i64> %res | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lit test is not testing this but it will complete the handling of cases in line with similar intrinsic, LRINT.