[polly] 4296f91 - [NFC][Alignment] Simplify code in JSONExporter
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 06:36:54 PDT 2022
Author: Guillaume Chatelet
Date: 2022-06-13T13:36:36Z
New Revision: 4296f91323a7d60b76b233890a5e9a050ce7c012
URL: https://github.com/llvm/llvm-project/commit/4296f91323a7d60b76b233890a5e9a050ce7c012
DIFF: https://github.com/llvm/llvm-project/commit/4296f91323a7d60b76b233890a5e9a050ce7c012.diff
LOG: [NFC][Alignment] Simplify code in JSONExporter
Added:
Modified:
polly/lib/Exchange/JSONExporter.cpp
Removed:
################################################################################
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index 3bb2a9aafe1d1..57c997e27d6ea 100644
--- a/polly/lib/Exchange/JSONExporter.cpp
+++ b/polly/lib/Exchange/JSONExporter.cpp
@@ -451,14 +451,12 @@ importAccesses(Scop &S, const json::Object &JScop, const DataLayout &DL,
bool SpecialAlignment = true;
if (LoadInst *LoadI = dyn_cast<LoadInst>(MA->getAccessInstruction())) {
SpecialAlignment =
- LoadI->getAlignment() &&
- DL.getABITypeAlignment(LoadI->getType()) != LoadI->getAlignment();
+ DL.getABITypeAlign(LoadI->getType()) != LoadI->getAlign();
} else if (StoreInst *StoreI =
dyn_cast<StoreInst>(MA->getAccessInstruction())) {
SpecialAlignment =
- StoreI->getAlignment() &&
- DL.getABITypeAlignment(StoreI->getValueOperand()->getType()) !=
- StoreI->getAlignment();
+ DL.getABITypeAlign(StoreI->getValueOperand()->getType()) !=
+ StoreI->getAlign();
}
if (SpecialAlignment) {
More information about the llvm-commits
mailing list