[llvm] [GlobalISel] Use LocationSize in GISelAddressing. NFC (PR #83885)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 14:46:23 PST 2024


================
@@ -117,8 +117,12 @@ bool GISelAddressing::aliasIsKnownForLoadStore(const MachineInstr &MI1,
   if (!BasePtr0.BaseReg.isValid() || !BasePtr1.BaseReg.isValid())
     return false;
 
-  int64_t Size1 = LdSt1->getMemSize();
-  int64_t Size2 = LdSt2->getMemSize();
+  LocationSize Size1 = LdSt1->getMemSize() != MemoryLocation::UnknownSize
+                           ? LdSt1->getMemSize()
+                           : LocationSize::beforeOrAfterPointer();
+  LocationSize Size2 = LdSt2->getMemSize() != MemoryLocation::UnknownSize
+                           ? LdSt2->getMemSize()
+                           : LocationSize::beforeOrAfterPointer();
----------------
aemerson wrote:

Ok go ahead then.

https://github.com/llvm/llvm-project/pull/83885


More information about the llvm-commits mailing list