[FastISel][AArch64] Don't fold the 'and' instruction into the 'tbz/tbnz' instruction...
authorJuergen Ributzka <juergen@apple.com>
Mon, 27 Oct 2014 19:16:48 +0000 (19:16 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 27 Oct 2014 19:16:48 +0000 (19:16 +0000)
commiteae91040d8cc4afbf4dce66acbfd32ad1e2b8975
tree19884371260c02fd14d8dfc91aa083de2c1c8a18
parentf920a0aa262ad975beb06e5c3fc9408d7797ffcb
[FastISel][AArch64] Don't fold the 'and' instruction into the 'tbz/tbnz' instruction if it is in a different basic block.

This fixes a bug where the input register was not defined for the 'tbz/tbnz'
instruction. This happened, because we folded the 'and' instruction from a
different basic block.

This fixes rdar://problem/18784013.

llvm-svn: 220704
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/fast-isel-tbz.ll