diff options
author | Anna Thomas <anna@azul.com> | 2021-09-15 17:58:25 -0400 |
---|---|---|
committer | Anna Thomas <anna@azul.com> | 2021-09-15 18:03:11 -0400 |
commit | f9e4aebe4a7a318869f57852359ad637f5c5a009 (patch) | |
tree | a46cfd2a8ac8945901fbd54cc4f1b22884e93f4f /llvm/lib/IR/Value.cpp | |
parent | 8025c03f70ee9b92e8599519b5ee34b54c9a80da (diff) | |
download | llvm-f9e4aebe4a7a318869f57852359ad637f5c5a009.zip llvm-f9e4aebe4a7a318869f57852359ad637f5c5a009.tar.gz llvm-f9e4aebe4a7a318869f57852359ad637f5c5a009.tar.bz2 |
Revert "[InstCombine] Improve TryToSinkInstruction with multiple uses"
This reverts commit 4ac4e52189aa6d80c3d59dc2c8f7dcc0cb7f9d58.
There are couple of test failures, which needs update of the test cases.
Doing a clean revert and will recommit the change along with fixed
testcases.
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index 7d2d73a..da67da1 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -176,18 +176,6 @@ Use *Value::getSingleUndroppableUse() { return Result; } -User *Value::getUniqueUndroppableUser() { - User *Result = nullptr; - for (auto *U : users()) { - if (!U->isDroppable()) { - if (Result && Result != U) - return nullptr; - Result = U; - } - } - return Result; -} - bool Value::hasNUndroppableUses(unsigned int N) const { return hasNItems(user_begin(), user_end(), N, isUnDroppableUser); } |