From 788af5a19bb91f19ff3f0247723e6a77dee68023 Mon Sep 17 00:00:00 2001 From: Michael Zuckerman Date: Wed, 18 Oct 2017 08:04:31 +0000 Subject: [PATCH] Fixing bug issue https://bugs.llvm.org/show_bug.cgi?id=34978 Change-Id: I7f13d5bcb181be2860377df7b40e1579a8ad4add git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316067 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InterleavedAccess.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/X86/X86InterleavedAccess.cpp b/lib/Target/X86/X86InterleavedAccess.cpp index ca5be914e58..6e87116f4d1 100644 --- a/lib/Target/X86/X86InterleavedAccess.cpp +++ b/lib/Target/X86/X86InterleavedAccess.cpp @@ -143,6 +143,8 @@ bool X86InterleavedAccessGroup::isSupported() const { if (isa(Inst)) { WideInstSize = DL.getTypeSizeInBits(Inst->getType()); + if (cast(Inst)->getPointerAddressSpace()) + return false; } else WideInstSize = DL.getTypeSizeInBits(Shuffles[0]->getType()); -- 2.11.0