SDISel should not optimize a unconditional branch following a conditional branch
authorEvan Cheng <evan.cheng@apple.com>
Thu, 23 Sep 2010 06:51:55 +0000 (06:51 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 23 Sep 2010 06:51:55 +0000 (06:51 +0000)
commit266a99d161069071f32c7c09dded481fd573a82e
tree5089759a8aa897fa4b5aa307a22170d7a54603a2
parentf70e7cc7a2871d498dbecbec2d1c3beb3da2af33
SDISel should not optimize a unconditional branch following a conditional branch
when the unconditional branch destination is the fallthrough block. The
canonicalization makes it easier to allow optimizations on DAGs to invert
conditional branches. The branch folding pass (and AnalyzeBranch) will clean up
the unnecessary unconditional branches later.

This is one of the patches leading up to disabling codegen prepare critical edge
splitting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114630 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp