Closed rcorcs closed 1 year ago
Thanks @rcorcs This is an interesting change.
Does this code transformation enable better code generation - for example, is the generated code in a raised binary (i.e., generated from the raised .ll file) with this change more optimal than that without this peephole opt? How much closer (or better, if I may be ambitious :-)) is the raised binary - with this peephole opt - to the original binary?
Any chance you could share a test (C or assembly) source?
Closing - no activity.
The code above is transformed into the follow code:
For example, this transformation can improve future optimizations when
foo
is inlined. It also makes it easier to analyze whether%arg1
is always used as a pointer, depending on itsinttoptr
uses.