Skip to content
Commit 4ff3cfb6 authored by Quentin Colombet's avatar Quentin Colombet
Browse files

[X86] Make sure it is safe to clobber EFLAGS, if need be, when choosing

the prologue.

Do not use basic blocks that have EFLAGS live-in as prologue if we need
to realign the stack. Realigning the stack uses AND instruction and this
clobbers EFLAGS.

An other alternative would have been to save and restore EFLAGS around
the stack realignment code, but this is likely inefficient.

Fixes PR27531.

llvm-svn: 267634
parent 9491371f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment