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

llvm: More descriptive variable names #2367

Merged
merged 5 commits into from
Mar 30, 2022

Conversation

jvesely
Copy link
Collaborator

@jvesely jvesely commented Mar 30, 2022

Add missing name to alloca instruction.
Use more descriptive variable names when invoking simulation trials.
Use conditional select instead of a stack array in the initialization of Mersenne Twister.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Not used in compiled computation.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Not used in compiled computation.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
The mag01 array has two constant elements.
These don't have to be loaded via stack location,
however, since the array is dynamically indexed,
the compiler won't move the constants to registers.

Perform this transformation manually to reduce stack usage.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
num_runs -> num_sim_trials
num_inputs -> num_sim_inputs

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
@jvesely jvesely added the compiler Runtime Compiler label Mar 30, 2022
@jvesely jvesely added this to In progress in LLVM Runtime Compiler via automation Mar 30, 2022
@github-actions
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):

No differences!

...

See CI logs for the full diff.

@jvesely jvesely merged commit 41ac3a0 into PrincetonUniversity:devel Mar 30, 2022
LLVM Runtime Compiler automation moved this from In progress to Done Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Runtime Compiler
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant