[NFC][polly] Removed dead code
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 13 Jun 2022 07:50:35 +0000 (07:50 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 13 Jun 2022 07:50:35 +0000 (07:50 +0000)
polly/include/polly/Support/ScopHelper.h

index 38f16d0a0393964725a3be8b78ac2a9e94d4fc50..6bfbebac7e2d0fe7311201cdcd26fd4037008897 100644 (file)
@@ -252,21 +252,6 @@ public:
       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();