[llvm] r352977 - AMDGPU/GlobalISel: Avoid reporting illegal extloads as legal
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 2 15:39:13 PST 2019
Author: arsenm
Date: Sat Feb 2 15:39:13 2019
New Revision: 352977
URL: http://llvm.org/viewvc/llvm-project?rev=352977&view=rev
Log:
AMDGPU/GlobalISel: Avoid reporting illegal extloads as legal
This avoids breaking a test in a future commit.
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp?rev=352977&r1=352976&r2=352977&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp Sat Feb 2 15:39:13 2019
@@ -307,7 +307,7 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo
unsigned Size = Ty0.getSizeInBits();
unsigned MemSize = Query.MMODescrs[0].SizeInBits;
- if (Size > 32 && MemSize < Size)
+ if (Size < 32 || (Size > 32 && MemSize < Size))
return false;
if (Ty0.isVector() && Size != MemSize)
More information about the llvm-commits
mailing list