Skip to content

How register liveness reducing is achieved #1515

Answered by hwu36
wzhcz8902 asked this question in Q&A
Discussion options

You must be logged in to vote

instead of

mov R1, blockIdx.x
...
1000 lines of assembly
...
setp R1

we prefer to do

setp blockIdx.x

just recompute simple things every time we use it so that we can have more free registers.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by wzhcz8902
Comment options

You must be logged in to vote
1 reply
@mrakgr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants