From 49a4d85f6d24b0cfdbe5eb4c17d0d996a7ba89de Mon Sep 17 00:00:00 2001 From: Ayman Musa Date: Wed, 12 Feb 2020 13:40:40 +0200 Subject: [PATCH] [NFC][AggressiveInstCombine] Remove redundant std::max. Differential Revision: https://reviews.llvm.org/D74476 --- llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp b/llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp index 7c57679..23db5ee 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); } } -- 2.7.4