[PATCH] D74476: [NFC][AggressiveInstCombine] Remove redundant std::max.
Ayman Musa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 03:55:52 PST 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG49a4d85f6d24: [NFC][AggressiveInstCombine] Remove redundant std::max. (authored by aymanmus).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74476/new/
https://reviews.llvm.org/D74476
Files:
llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
Index: llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
===================================================================
--- llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
+++ llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
@@ -194,7 +194,7 @@
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);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74476.244124.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200212/93a13f92/attachment.bin>
More information about the llvm-commits
mailing list