Check for empty YMM use-def lists in X86VZeroUpper.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 17 Oct 2012 17:52:35 +0000 (17:52 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 17 Oct 2012 17:52:35 +0000 (17:52 +0000)
commit9d57cdfa172c1af3712ef52862a1976c57c679a5
tree5e48b1102b923a093476f1080654085f654b72eb
parente4b33a115bb91c663c55061fd232fa839cc8c4ca
Check for empty YMM use-def lists in X86VZeroUpper.

The previous MRI.isPhysRegUsed(YMM0) would also return true when the
function contains a call to a function that may clobber YMM0. That's
most of them.

Checking the use-def chains allows us to skip functions that don't
explicitly mention YMM registers.

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