MachineInstrBundle: Fix reversed isSuperRegisterEq() call
authorMatthias Braun <matze@braunis.de>
Tue, 5 Jan 2016 00:45:35 +0000 (00:45 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 5 Jan 2016 00:45:35 +0000 (00:45 +0000)
commit96b46d19c0cfbcdfdb9dfcd41d0298f54871981d
treeb7c31275ea13c4a1d106df6444dea6f4b561f044
parentb51c74dea66770b451895fd355711d4b684da949
MachineInstrBundle: Fix reversed isSuperRegisterEq() call

Unfortunately this fix had the effect of exposing the
-verify-machineinstrs FIXME of X86InstrInfo.cpp in two testcases for
which I disabled it for now.
Two testcases also have additional pushq/popq where the corrected code
cannot prove that %rax is dead any longer. Looking at the examples, this
could potentially be fixed by improving computeRegisterLiveness() to check
the live-in lists of the successors blocks when reaching the end of a
block.

This fixes http://llvm.org/PR25951.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256799 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineInstrBundle.cpp
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/cmpxchg-clobber-flags.ll
test/CodeGen/X86/peephole-na-phys-copy-folding.ll