[CodeGen] Fix sinking local values in lpads with phis
authorReid Kleckner <rnk@google.com>
Sat, 28 Mar 2020 18:03:14 +0000 (11:03 -0700)
committerReid Kleckner <rnk@google.com>
Sat, 28 Mar 2020 18:10:33 +0000 (11:10 -0700)
commite5bf5037d869c74bc2faf81fa1f58dfd827e8356
tree8aa1283bd85fa6e95b1b56cda4ea99f9823d4306
parent30d712103faa8c78e8b1dbc9cc6c9b831bb20e4c
[CodeGen] Fix sinking local values in lpads with phis

There was already a test case for landingpads to handle this case, but I
had forgotten to consider PHI instructions preceding the EH_LABEL in the
landingpad.

PR45261
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
llvm/test/CodeGen/X86/sink-local-value.ll