[llvm] 79b3ab7 - [NFC] Simplify expression
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 5 02:17:33 PST 2021
Author: Guillaume Chatelet
Date: 2021-02-05T10:17:02Z
New Revision: 79b3ab725d31ee5ff6e70f6d4143fed28164e3c2
URL: https://github.com/llvm/llvm-project/commit/79b3ab725d31ee5ff6e70f6d4143fed28164e3c2
DIFF: https://github.com/llvm/llvm-project/commit/79b3ab725d31ee5ff6e70f6d4143fed28164e3c2.diff
LOG: [NFC] Simplify expression
Added:
Modified:
llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp b/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
index 1d09aeb342ac..10c2353cfe2b 100644
--- a/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
@@ -1655,7 +1655,7 @@ bool R600TargetLowering::allowsMisalignedMemoryAccesses(
if (IsFast)
*IsFast = true;
- return VT.bitsGT(MVT::i32) && Alignment.value() % 4 == 0;
+ return VT.bitsGT(MVT::i32) && Alignment >= Align(4);
}
static SDValue CompactSwizzlableVector(
More information about the llvm-commits
mailing list