diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-10-23 16:58:09 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-10-23 16:59:29 +0200 |
commit | c5b5b7f621ee5438c802d0b5a54c78af8a99dfa3 (patch) | |
tree | d18003e0af8a87424dea0bef57fe10cd18c15dec /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | e03b4431132ed7d46aea9cc37323e966cdb5283e (diff) | |
download | llvm-c5b5b7f621ee5438c802d0b5a54c78af8a99dfa3.zip llvm-c5b5b7f621ee5438c802d0b5a54c78af8a99dfa3.tar.gz llvm-c5b5b7f621ee5438c802d0b5a54c78af8a99dfa3.tar.bz2 |
[ConstantFolding] Remove ConstantFoldLoadThroughGEPIndices() API (NFC)
The last user of this API went away in
4f5e9a2bb28e1cf4a12c9330f52e664542400ec7.
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index c761fde..8ec4ea1 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -1354,19 +1354,6 @@ Constant *llvm::ConstantFoldLoadThroughGEPConstantExpr(Constant *C, return ConstantFoldLoadThroughBitcast(C, Ty, DL); } -Constant * -llvm::ConstantFoldLoadThroughGEPIndices(Constant *C, - ArrayRef<Constant *> Indices) { - // Loop over all of the operands, tracking down which value we are - // addressing. - for (Constant *Index : Indices) { - C = C->getAggregateElement(Index); - if (!C) - return nullptr; - } - return C; -} - //===----------------------------------------------------------------------===// // Constant Folding for Calls // |