Don't attempt to use flags from predicated instructions.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 10 Sep 2012 19:17:25 +0000 (19:17 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 10 Sep 2012 19:17:25 +0000 (19:17 +0000)
commit519daf5d2dd80614ac4e529b199e6f3e595bfc80
treea32634c3414828cc97a351d4112ba6acca490888
parent2c38a6615a693d0a43159825da2358126473502b
Don't attempt to use flags from predicated instructions.

The ARM backend can eliminate cmp instructions by reusing flags from a
nearby sub instruction with similar arguments.

Don't do that if the sub is predicated - the flags are not written
unconditionally.

<rdar://problem/12263428>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163535 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
test/CodeGen/ARM/sub-cmp-peephole.ll