[X86] Add a paranoia type check to the code that detects AVG patterns from truncating...
authorCraig Topper <craig.topper@intel.com>
Mon, 12 Aug 2019 19:26:37 +0000 (19:26 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 12 Aug 2019 19:26:37 +0000 (19:26 +0000)
commita3605baaffa630f7cf9c9bafd44765da72587333
tree081fb3acab9dacb00a32c77284c68f6c4640de26
parent1b02909847ce3b82b1c3a0b6313b3076a4901f14
[X86] Add a paranoia type check to the code that detects AVG patterns from truncating stores.

If we're after type legalize, we should make sure we won't create
a store with an illegal type when we separate the AVG pattern
from the truncating store.

I don't know of a way to fail for this today. Just noticed while
I was in the vicinity.

llvm-svn: 368608
llvm/lib/Target/X86/X86ISelLowering.cpp