[X86] Detect if EFLAGs is live across XBEGIN pseudo instruction. Add it as livein...
authorCraig Topper <craig.topper@intel.com>
Tue, 28 Jul 2020 04:11:54 +0000 (21:11 -0700)
committerCraig Topper <craig.topper@intel.com>
Tue, 28 Jul 2020 04:15:35 +0000 (21:15 -0700)
commit647e861e080382593648b234668ad2f5a376ac5e
tree0db2219ade36e27d95634be3062d73ed08d18773
parent25f193fb46dbdcc178946765aa929535199e2a4b
[X86] Detect if EFLAGs is live across XBEGIN pseudo instruction. Add it as livein to the basic blocks created when expanding the pseudo

XBEGIN causes several based blocks to be inserted. If flags are live across it we need to make eflags live in the new basic blocks to avoid machine verifier errors.

Fixes PR46827

Reviewed By: ivanbaev

Differential Revision: https://reviews.llvm.org/D84479
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pr46827.ll [new file with mode: 0644]