Recommit r343993: [X86] condition branches folding for three-way conditional codes
authorRong Xu <xur@google.com>
Tue, 9 Oct 2018 22:03:40 +0000 (22:03 +0000)
committerRong Xu <xur@google.com>
Tue, 9 Oct 2018 22:03:40 +0000 (22:03 +0000)
commit3d2efdfdea2f70ab2eb1e81dc9c254240e4f2d7b
tree0d5fa1c20f7aabe88635ecc5223c12d5c0c38c82
parentbea5967e8ce465734d59823d5b3d24453ae949b0
Recommit r343993: [X86] condition branches folding for three-way conditional codes

Fix the memory issue exposed by sanitizer.

llvm-svn: 344085
llvm/lib/Target/X86/CMakeLists.txt
llvm/lib/Target/X86/X86.h
llvm/lib/Target/X86/X86.td
llvm/lib/Target/X86/X86CondBrFolding.cpp [new file with mode: 0644]
llvm/lib/Target/X86/X86Subtarget.h
llvm/lib/Target/X86/X86TargetMachine.cpp
llvm/test/CodeGen/X86/O3-pipeline.ll
llvm/test/CodeGen/X86/condbr_if.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/condbr_switch.ll [new file with mode: 0644]