-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add a set of tests for LLVM 19 #128584
Add a set of tests for LLVM 19 #128584
Conversation
// CHECK-NOT: select | ||
// CHECK: [[RET:%.*]] = load i32, ptr | ||
// CHECK-NEXT: ret i32 [[RET]] | ||
x.next().unwrap_unchecked() |
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.
// CHECK-NEXT: [[SWITCH_GEP:%.*]] = getelementptr inbounds [4 x i64], ptr @switch.table.branchy, i64 0, i64 [[_2]] | ||
// CHECK-NEXT: [[SWITCH_LOAD:%.*]] = load i64, ptr [[SWITCH_GEP]] | ||
// CHECK-NEXT: ret i64 [[SWITCH_LOAD]] | ||
match input % 4 { |
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.
// CHECK: [[L1]]: | ||
// CHECK-NOT: .{{.*}}: | ||
// CHECK: ret | ||
match b { |
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.
#![crate_type = "lib"] | ||
|
||
#[no_mangle] | ||
fn checked_div_round(a: u64, b: u64) -> Option<u64> { |
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.
I think it would be better to check that the IR does not have the extra undef phi input.
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.
At least for this case, I think so.
6a37129
to
272bfb9
Compare
@bors r+ rollup=iffy |
tests/codegen/issues/issue-126585.rs
Outdated
// Ensure that this IR doesn't has extra undef phi input, which also guarantees that this asm | ||
// doesn't has subsequent labels and unnecessary `jmp` instructions. |
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.
Drive-by spellchecking 😄
// Ensure that this IR doesn't has extra undef phi input, which also guarantees that this asm | |
// doesn't has subsequent labels and unnecessary `jmp` instructions. | |
// Ensure that this IR doesn't have extra undef phi input, which also guarantees that this asm | |
// doesn't have subsequent labels and unnecessary `jmp` instructions. |
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.
Oops, thanks!
@bors r- |
272bfb9
to
3e5429e
Compare
@bors r+ |
Add a set of tests for LLVM 19 Close rust-lang#107681. Close rust-lang#118306. Close rust-lang#126585. r? compiler
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
3e5429e
to
5a25b05
Compare
@bors try |
Add a set of tests for LLVM 19 Close rust-lang#107681. Close rust-lang#118306. Close rust-lang#126585. r? compiler try-job: i686-msvc try-job: arm-android try-job: test-various
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#128384 (Add tests to ensure MTE tags are preserved across FFI boundaries) - rust-lang#128407 (Migrate `min-global-align` and `no-alloc-shim` `run-make` tests to rmake) - rust-lang#128584 (Add a set of tests for LLVM 19) - rust-lang#128636 (migrate `thumb-none-cortex-m` to rmake) - rust-lang#128696 (Migrate `staticlib-dylib-linkage` `run-make` test to rmake) Failed merges: - rust-lang#128639 (migrate `thumb-none-qemu` to rmake) r? `@ghost` `@rustbot` modify labels: rollup
It appears to be caused by the ABI of i686, which should also be fixable. However, for this test, I'm not sure which is more appropriate: |
I'd go back to the original version without no-jump-table and only-x86_64. |
d432330
to
6251df7
Compare
6251df7
to
b5c453d
Compare
@bors r+ rollup=never |
Add a set of tests for LLVM 19 Close rust-lang#107681. Close rust-lang#118306. Close rust-lang#126585. r? compiler
💔 Test failed - checks-actions |
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (69b380d): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary 5.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 762.964s -> 763.399s (0.06%) |
Close #107681. Close #118306. Close #126585.
r? compiler