forked from OSchip/llvm-project
[NFC][polly] Removed dead code
This commit is contained in:
parent
8f6512fea0
commit
6e930503f4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue