OSDN Git Service

X86: Conditional tail calls should not have isBarrier = 1
authorHans Wennborg <hans@hanshq.net>
Tue, 13 Sep 2016 00:21:32 +0000 (00:21 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 13 Sep 2016 00:21:32 +0000 (00:21 +0000)
commit45564d960ba1df59636e4429ab92fc7b09e3efc1
treef3c906d14565c761c0df7cd5096e723098355daa
parentf016a03393f8a756e71c8e56db57432bdbafb76e
X86: Conditional tail calls should not have isBarrier = 1

That confuses e.g. machine basic block placement, which then doesn't
realize that control can fall through a block that ends with a conditional
tail call. Instead, isBranch=1 should be set.

Also, mark EFLAGS as used by these instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281281 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrControl.td
test/CodeGen/X86/conditional-tailcall.ll
test/CodeGen/X86/tail-call-conditional.mir