[FastISel][X86] Optimize predicates and fold CMP instructions.
authorJuergen Ributzka <juergen@apple.com>
Tue, 17 Jun 2014 21:55:43 +0000 (21:55 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 17 Jun 2014 21:55:43 +0000 (21:55 +0000)
commitaa60209311ab2e8b471dc1e1237b97c240499423
tree573c87187f125f8caf9a5c671f443974a2c397c9
parenta9380b3efd16186df72cc0808e668f1e37162dcb
[FastISel][X86] Optimize predicates and fold CMP instructions.

This optimizes predicates for certain compares, such as fcmp oeq %x, %x to
fcmp ord %x, %x. The latter one is more efficient to generate.

The same optimization is applied to conditional branches.

llvm-svn: 211126
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/fast-isel-cmp-branch3.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/fast-isel-cmp.ll