Peephole optimization of ptest-conditioned branch in X86 arch. Performs instruction...
authorVictor Umansky <victor.umansky@intel.com>
Thu, 5 Jan 2012 08:46:19 +0000 (08:46 +0000)
committerVictor Umansky <victor.umansky@intel.com>
Thu, 5 Jan 2012 08:46:19 +0000 (08:46 +0000)
commit19d8559019b75edfd7f5b05ffa266bc278127854
tree817bc1818c4bca5350ec8156caebfdeefe21a334
parent30c90c973ab7b08df2a1eabf6bde5c6af5cda4a2
Peephole optimization of ptest-conditioned branch in X86 arch. Performs instruction combining of sequences generated by ptestz/ptestc intrinsics to ptest+jcc pair for SSE and AVX.

Testing: passed 'make check' including LIT tests for all sequences being handled (both SSE and AVX)

Reviewers: Evan Cheng, David Blaikie, Bruno Lopes, Elena Demikhovsky, Chad Rosier, Anton Korobeynikov

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147601 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/avx-brcond.ll [new file with mode: 0755]
test/CodeGen/X86/brcond.ll