HomePhabricator

[X86] Detect if EFLAGs is live across XBEGIN pseudo instruction. Add it as…

Authored by craig.topper on Jul 27 2020, 9:11 PM.

Description

[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