[X86] Remove isSafeToClobberEFLAGS helper and just inline it into the call sites.
authorCraig Topper <craig.topper@intel.com>
Sat, 8 Aug 2020 19:00:15 +0000 (12:00 -0700)
committerCraig Topper <craig.topper@intel.com>
Sat, 8 Aug 2020 19:31:58 +0000 (12:31 -0700)
commit815a9b256b909572c3161dab056b48b1791d8fbc
treea11e44287992495053bf5355227bb2564d9bd35e
parentc888694a8edaf2794fc5960a3c1087fbed37ba92
[X86] Remove isSafeToClobberEFLAGS helper and just inline it into the call sites.

This is just a thin wrapper around computeRegisterLivness which
we can just call directly. The only real difference is that
isSafeToClobberEFLAGS returns a bool and computeRegisterLivness
returns an enum. So we need to check for the specific enum value
that isSafeToClobberEFLAGS was hiding.

I've also adjusted which sites pass an explicit value for
Neighborhood since the default for computeRegisterLivness is 10.
llvm/lib/Target/X86/X86FixupLEAs.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.h