commit | 825e5aadeb861c87cbcf278e3695037973c121d8 | [log] [tgz] |
---|---|---|
author | Wei Mi <wmi@google.com> | Wed May 11 22:37:43 2016 +0000 |
committer | Wei Mi <wmi@google.com> | Wed May 11 22:37:43 2016 +0000 |
tree | 5fe5f9bcdb72c1c0844e74027ebc82fec65aaf4e | |
parent | 723d45a0c7732b0ab2cdaf708579581551069f37 [diff] |
Fix a bug when hoist spill to a BB with landingpad successor. This is to fix the bug in https://llvm.org/bugs/show_bug.cgi?id=27612. When spill is hoisted to a BB with landingpad successor, and if the VNI of the spill reg lives into the landingpad successor, the spill should be inserted before the call which may throw exception. InsertPointAnalysis is used to compute the safe insert point. http://reviews.llvm.org/D20027 is a preparing patch for this patch. Differential Revision: http://reviews.llvm.org/D19884. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269249 91177308-0d34-0410-b5e6-96231b3b80d8