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)
commit8a42d4b9cc038744eeb3f3276a6ecb36a32018c0
tree3f9e3f239b0533d609a2b0c91ed72b742e9a6755
parent04c7db31e8072af2912cabc8af4b0b9347728e86
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.

llvm-svn: 281281
llvm/lib/Target/X86/X86InstrControl.td
llvm/test/CodeGen/X86/conditional-tailcall.ll
llvm/test/CodeGen/X86/tail-call-conditional.mir