Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lowbloodsugar
on Jan 10, 2023
|
parent
|
context
|
favorite
| on:
Mapping Python to LLVM
Have to assign variables to a bit of memory on the stack because SSA??
int_19h
on Jan 10, 2023
[–]
LLVM has an optimization pass that takes care of that.
https://llvm.org/docs/Passes.html#passes-mem2reg
lowbloodsugar
on Jan 10, 2023
|
parent
[–]
That's not the only way to do that tho? Or is that the recommended way to do it?
int_19h
on Jan 10, 2023
|
root
|
parent
[–]
You can write your code generator to produce the optimized output right away, of course. But the whole point of LLVM is to not have every compiler worry about doing stuff like this well.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: