[llvm] 2887dd7 - [NFC][Alignment] Use getAlign in VNCoercion
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 08:17:41 PDT 2022
Author: Guillaume Chatelet
Date: 2022-06-13T15:13:05Z
New Revision: 2887dd754ee8a9f04395c03f40c521844003a9ef
URL: https://github.com/llvm/llvm-project/commit/2887dd754ee8a9f04395c03f40c521844003a9ef
DIFF: https://github.com/llvm/llvm-project/commit/2887dd754ee8a9f04395c03f40c521844003a9ef.diff
LOG: [NFC][Alignment] Use getAlign in VNCoercion
Added:
Modified:
llvm/lib/Transforms/Utils/VNCoercion.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/VNCoercion.cpp b/llvm/lib/Transforms/Utils/VNCoercion.cpp
index 637181722f631..89a2c374c7efc 100644
--- a/llvm/lib/Transforms/Utils/VNCoercion.cpp
+++ b/llvm/lib/Transforms/Utils/VNCoercion.cpp
@@ -277,7 +277,7 @@ static unsigned getLoadLoadClobberFullWidthSize(const Value *MemLocBase,
// looking at an i8 load on x86-32 that is known 1024 byte aligned, we can
// widen it up to an i32 load. If it is known 2-byte aligned, we can widen it
// to i16.
- unsigned LoadAlign = LI->getAlignment();
+ unsigned LoadAlign = LI->getAlign().value();
int64_t MemLocEnd = MemLocOffs + MemLocSize;
More information about the llvm-commits
mailing list