OSDN Git Service

[X86] Don't look for TEST instruction shrinking opportunities when the root node...
authorCraig Topper <craig.topper@intel.com>
Mon, 12 Feb 2018 03:02:02 +0000 (03:02 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 12 Feb 2018 03:02:02 +0000 (03:02 +0000)
commit00884fea345f47ab05174a8f314ecd60d1676d02
treeda147bba333d7b7150b13af555d50ec841ffd663
parent042fe30f8f5b31058ebe938f728bcdeb09a3658e
[X86] Don't look for TEST instruction shrinking opportunities when the root node is a X86ISD::SUB.

I don't believe we ever create an X86ISD::SUB with a 0 constant which is what the TEST handling needs. The ternary operator at the end of this code shows up as only going one way in the llvm-cov report from the bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324865 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp