llvm-6502/lib
Ahmed Bougacha 995f4f8fd1 [CodeGen][IfCvt] Don't re-ifcvt blocks with unanalyzable terminators.
If we couldn't analyze its terminator (i.e., it's an indirectbr, or some
other weirdness), we can't safely re-if-convert a predicated block,
because we can't tell whether the predicated terminator can
fallthrough (it does).

Currently, we would completely ignore the fallthrough successor. In
the added testcase, this means we used to generate:

    ...
  @ %entry:
    cmp   r5, #21
    ittt  ne
  @ %cc1f:
    cmpne r7, #42
  @ %cc2t:
    strne.w       r5, [r8]
    movne pc, r10
  @ %cc1t:
    ...

Whereas the successor of %cc1f was originally %bb1.
With the fix, we get the correct:

    ...
  @ %entry:
    cmp   r5, #21
    itt   eq
  @ %cc1t:
    streq.w       r5, [r11]
    moveq pc, r0
  @ %cc1f:
    cmp   r7, #42
    itt   ne
  @ %cc2t:
    strne.w       r5, [r8]
    movne pc, r10
  @ %bb1:
    ...

rdar://20192768
Differential Revision: http://reviews.llvm.org/D8509


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232872 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-21 01:23:15 +00:00
..
Analysis Correctly estimate SROA savings for store operands in inline cost analysis. 2015-03-20 18:33:12 +00:00
AsmParser
Bitcode
CodeGen [CodeGen][IfCvt] Don't re-ifcvt blocks with unanalyzable terminators. 2015-03-21 01:23:15 +00:00
DebugInfo
ExecutionEngine
Fuzzer
IR Verifier: Check that !dbg attachments have the right type 2015-03-20 19:26:58 +00:00
IRReader
LineEditor
Linker
LTO Verifier: Remove the separate -verify-di pass 2015-03-19 22:24:17 +00:00
MC Don't declare all text sections at the start of the .s 2015-03-20 20:00:01 +00:00
Object
Option Make getLastArgNoClaim work for up to 4 arguments. 2015-03-20 23:32:58 +00:00
Passes
ProfileData
Support Note that we don't support COFF on PPC. 2015-03-19 02:40:56 +00:00
TableGen
Target [AArch64] Prefer UZP for concat_vector of illegal truncs. 2015-03-21 01:08:39 +00:00
Transforms [X86, AVX] instcombine common cases of vperm2* intrinsics into shuffles 2015-03-20 21:47:56 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile