[lld] 7d26916 - [lld/mac] tweak comment based on feedback on D98053
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 13:28:46 PST 2021
Author: Nico Weber
Date: 2021-03-05T16:28:38-05:00
New Revision: 7d26916859e9357bc27f96975f33cda0c5657d88
URL: https://github.com/llvm/llvm-project/commit/7d26916859e9357bc27f96975f33cda0c5657d88
DIFF: https://github.com/llvm/llvm-project/commit/7d26916859e9357bc27f96975f33cda0c5657d88.diff
LOG: [lld/mac] tweak comment based on feedback on D98053
Added:
Modified:
lld/MachO/Arch/ARM64.cpp
Removed:
################################################################################
diff --git a/lld/MachO/Arch/ARM64.cpp b/lld/MachO/Arch/ARM64.cpp
index a8796db8a7ca..c14114f5ca64 100644
--- a/lld/MachO/Arch/ARM64.cpp
+++ b/lld/MachO/Arch/ARM64.cpp
@@ -131,7 +131,7 @@ inline uint64_t encodePageOff12(uint32_t base, uint64_t va) {
int scale = 0;
if ((base & 0x3b00'0000) == 0x3900'0000) { // load/store
scale = base >> 30;
- if (scale == 0 && (base & 0x0480'0000) == 0x0480'0000) // vector op?
+ if (scale == 0 && (base & 0x0480'0000) == 0x0480'0000) // 128-bit variant
scale = 4;
}
More information about the llvm-commits
mailing list