[polly] 6e93050 - [NFC][polly] Removed dead code
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 00:50:58 PDT 2022
Author: Guillaume Chatelet
Date: 2022-06-13T07:50:35Z
New Revision: 6e930503f4585a3e708b03fe96df68e4fddba3e4
URL: https://github.com/llvm/llvm-project/commit/6e930503f4585a3e708b03fe96df68e4fddba3e4
DIFF: https://github.com/llvm/llvm-project/commit/6e930503f4585a3e708b03fe96df68e4fddba3e4.diff
LOG: [NFC][polly] Removed dead code
Added:
Modified:
polly/include/polly/Support/ScopHelper.h
Removed:
################################################################################
diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h
index 38f16d0a03939..6bfbebac7e2d0 100644
--- a/polly/include/polly/Support/ScopHelper.h
+++ b/polly/include/polly/Support/ScopHelper.h
@@ -252,21 +252,6 @@ class MemAccInst final {
return nullptr;
llvm_unreachable("Operation not supported on nullptr");
}
-
- unsigned getAlignment() const {
- if (isLoad())
- return asLoad()->getAlignment();
- if (isStore())
- return asStore()->getAlignment();
- if (isMemTransferInst())
- return std::min(asMemTransferInst()->getDestAlignment(),
- asMemTransferInst()->getSourceAlignment());
- if (isMemIntrinsic())
- return asMemIntrinsic()->getDestAlignment();
- if (isCallInst())
- return 0;
- llvm_unreachable("Operation not supported on nullptr");
- }
bool isVolatile() const {
if (isLoad())
return asLoad()->isVolatile();
More information about the llvm-commits
mailing list