[X86] Demote EmitTest to a helper function of EmitCmp. Route all callers except EmitC...
authorCraig Topper <craig.topper@intel.com>
Thu, 13 Dec 2018 23:55:30 +0000 (23:55 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 13 Dec 2018 23:55:30 +0000 (23:55 +0000)
commit178abc59acd1eef9b0a14462da99ca4595241945
tree6004eeedfacf6fba6d82572c35f444f7f87872c4
parente6acf2c3b4e62438a2d1daeb23f2bdacb0222265
[X86] Demote EmitTest to a helper function of EmitCmp. Route all callers except EmitCmp through EmitCmp.

This requires the two callers to manifest a 0 to make EmitCmp call EmitTest.

I'm looking into changing how we combine TEST and flag setting instructions to not be part of lowering. And instead be part of DAG combine or isel. Which will mean EmitTest will probably become gutted and maybe disappear entirely.

llvm-svn: 349094
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h