Should link the bitcodes with caller functions before callee functions.
Thanks, looks good.
Please add a lit test.
Updated diff with a lit test.
LGTM. Thanks!