migration from @pcwalton 's stack-move optimization only focused on single BB cases.
original patch: https://reviews.llvm.org/D140089
functional patch: https://reviews.llvm.org/D153453
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
add the case to write on dest before memcpy.
need to specify the expected transformation in liveness property.
Comment Actions
add
- mod on alias( TODO: but need to be changed to on src ptr)
- inalloca
TODO: exhaustive mod/ref after copy
Comment Actions
I think it's now worth to be review :)
- add partial lifetime test
- mod/ref exhaustive tests before/after copy
- insert newlines
Comment Actions
We should have a test where the uses are not in the entry block (won't fold right now, but just to check it doesn't crash...)