When there are loads in the then and else blocks, we can still hoist
them up into the if block, but we have to take caret to adjust the range
metadata.
Details
Details
- Reviewers
• rafael
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM.
This patch is correct and can be committed, but there are other related bugs:
- We also need to merge TBAA for example.
- We need to delete unknown metadata.
GVN has code in patchReplacementInstruction that should probably be refactored to an utility function that is also used here. Do you want to try to implement that? If not, please at least open a bug to track it.
Thanks
Comment Actions
Updated the patch to introduce a helper to combine instruction metadata and
handle all metadata for the hoisted instructions.
Comment Actions
I have commit access by now, can I just commit the test or was there a reason it was left out?