Skip to content
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

[DWARF] Add logging to range building #9969

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Jan 9, 2025

This helps one gain insight into how and why variable ranges end up as they do. #9900 is an example of an investigation using this code.

Sample output:

Building ranges for values in scope: [0..186)
L#0   : %r13@[49..68)
L#2   : %rbx@[59..68) %rbx@[72..145)
L#5   : %rax@[100..105)
L#8   : %rax@[116..121)
L#11  : %rax@[132..142)
L#12  : %r9@[137..142)
L#13  : %rax@[142..157)
VMCTX : %rdi@[49..100) %r14@[100..157)    
Intersecting with L#2    
Intersecting with VMCTX    
Built ranges:    
[L#2:%rbx, VMCTX:%rdi]@[59..68)    
[L#2:%rbx, VMCTX:%rdi]@[72..100)    
[L#2:%rbx, VMCTX:%r14]@[100..145)    

@SingleAccretion SingleAccretion force-pushed the DI-Var-Log branch 2 times, most recently from 99dc898 to dd8b521 Compare January 9, 2025 21:57
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen labels Jan 9, 2025
@SingleAccretion SingleAccretion marked this pull request as ready for review January 14, 2025 20:12
@SingleAccretion SingleAccretion requested review from a team as code owners January 14, 2025 20:12
@SingleAccretion SingleAccretion requested review from cfallin and pchickey and removed request for a team January 14, 2025 20:12
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Jan 14, 2025
Merged via the queue into bytecodealliance:main with commit 1c521e1 Jan 14, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:x64 Issues related to x64 codegen cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants