OSDN Git Service

Fixing bug issue https://bugs.llvm.org/show_bug.cgi?id=34978
authorMichael Zuckerman <Michael.zuckerman@intel.com>
Wed, 18 Oct 2017 08:04:31 +0000 (08:04 +0000)
committerMichael Zuckerman <Michael.zuckerman@intel.com>
Wed, 18 Oct 2017 08:04:31 +0000 (08:04 +0000)
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

index ca5be91..6e87116 100644 (file)
@@ -143,6 +143,8 @@ bool X86InterleavedAccessGroup::isSupported() const {
 
   if (isa<LoadInst>(Inst)) {
     WideInstSize = DL.getTypeSizeInBits(Inst->getType());
+    if (cast<LoadInst>(Inst)->getPointerAddressSpace())
+      return false;
   } else
     WideInstSize = DL.getTypeSizeInBits(Shuffles[0]->getType());