[NFC][polly] Removed dead code

This commit is contained in:
Guillaume Chatelet 2022-06-13 07:50:35 +00:00
parent 8f6512fea0
commit 6e930503f4
1 changed files with 0 additions and 15 deletions

View 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();