llvm/lib/Transforms
Matt Arsenault fe6b2045f8 StructurizeCFG: Directly invert cmp instructions
The most common case for a branch condition is
a single use compare. Directly invert the branch
predicate rather than adding a lot of xor i1 true
which the DAG will have to fold later.

This produces nicer to read structurizer output.

This produces some random changes in codegen
due to the DAG swapping branch conditions itself,
and then does a poor job of dealing with those
inverts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300732 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-19 18:29:07 +00:00
..
Coroutines
Hello
InstCombine
Instrumentation
IPO
ObjCARC
Scalar StructurizeCFG: Directly invert cmp instructions 2017-04-19 18:29:07 +00:00
Utils
Vectorize
CMakeLists.txt
LLVMBuild.txt