]> granicus.if.org Git - llvm/commit
[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)
commita78ab61aadd95847b53cbcd5b84ec3e873392a42
tree3995b79d0ec4fed64d0c71c342da5a304c04e3ad
parent07a3dd83502c14a9bbc039bae938cb0c9cfa5070
[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.

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