[llvm] 49a4d85 - [NFC][AggressiveInstCombine] Remove redundant std::max.
Ayman Musa via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 03:47:56 PST 2020
Author: Ayman Musa
Date: 2020-02-12T13:47:40+02:00
New Revision: 49a4d85f6d24b0cfdbe5eb4c17d0d996a7ba89de
URL: https://github.com/llvm/llvm-project/commit/49a4d85f6d24b0cfdbe5eb4c17d0d996a7ba89de
DIFF: https://github.com/llvm/llvm-project/commit/49a4d85f6d24b0cfdbe5eb4c17d0d996a7ba89de.diff
LOG: [NFC][AggressiveInstCombine] Remove redundant std::max.
Differential Revision: https://reviews.llvm.org/D74476
Added:
Modified:
llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp b/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
index 7c5767912fd3..23db5ee0ef2a 100644
--- a/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
+++ b/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
@@ -194,7 +194,7 @@ unsigned TruncInstCombine::getMinBitWidth() {
unsigned IOpBitwidth = InstInfoMap.lookup(IOp).ValidBitWidth;
if (IOpBitwidth >= ValidBitWidth)
continue;
- InstInfoMap[IOp].ValidBitWidth = std::max(ValidBitWidth, IOpBitwidth);
+ InstInfoMap[IOp].ValidBitWidth = ValidBitWidth;
Worklist.push_back(IOp);
}
}
More information about the llvm-commits
mailing list