diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h index 38f16d0a0393..6bfbebac7e2d 100644 --- a/polly/include/polly/Support/ScopHelper.h +++ b/polly/include/polly/Support/ScopHelper.h @@ -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();