Non-fast-isel followup to 129634; correctly handle branches controlled
authorStuart Hastings <stuart@apple.com>
Thu, 12 May 2011 23:36:41 +0000 (23:36 +0000)
committerStuart Hastings <stuart@apple.com>
Thu, 12 May 2011 23:36:41 +0000 (23:36 +0000)
commit5adc64638084c1b8d33ac56e2498b83f1f4bd6e2
tree18fe7fa4f94db8aed38de295b2a29b0b98c9427d
parent6175e03825070f53b17deeb9156935ac1ac06672
Non-fast-isel followup to 129634; correctly handle branches controlled
by non-CMP expressions.  The executable test case (129821) would test
this as well, if we had an "-O0 -disable-arm-fast-isel" LLVM-GCC
tester.  Alas, the ARM assembly would be very difficult to check with
FileCheck.

The thumb2-cbnz.ll test is affected; it generates larger code (tst.w
vs. cmp #0), but I believe the new version is correct.
rdar://problem/9298790

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/Thumb2/thumb2-cbnz.ll