[X86] Directly call EmitTest in two places instead of creating a null constant and...
authorCraig Topper <craig.topper@gmail.com>
Fri, 20 Dec 2019 04:41:02 +0000 (20:41 -0800)
committerCraig Topper <craig.topper@gmail.com>
Fri, 20 Dec 2019 07:03:06 +0000 (23:03 -0800)
commit9b6fafa3990fb5963f0558d13d53abc461fb3f29
tree7e10d3fdee5fcb84bdeaa1979832db5e3c9191a1
parent07ac3145ccd5a43fe99e759afb6e8f1b08aca745
[X86] Directly call EmitTest in two places instead of creating a null constant and calling EmitCmp. NFCI

EmitCmp will just immediately call EmitTest and discard the null
constant only to have EmitTest create it again if it doesn't fold.

So just skip all that and go directly to EmitTest.
llvm/lib/Target/X86/X86ISelLowering.cpp