[PATCH] D72837: [AggressiveInstCombine] Add support for select instruction.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 05:16:37 PST 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp:203
continue;
- InstInfoMap[IOp].ValidBitWidth = std::max(ValidBitWidth, IOpBitwidth);
+ InstInfoMap[IOp].ValidBitWidth = ValidBitWidth;
Worklist.push_back(IOp);
----------------
aymanmus wrote:
> lebedev.ri wrote:
> > Why is this being changed?
> >
> The max operation is not needed here.
> If we reach this point of the code, then ValidBitWidth MUST be bigger than IOpBitwidth (because other wise we'll hit the "continue" at line 202.
Can you submit that as a separate change then please?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72837/new/
https://reviews.llvm.org/D72837
More information about the llvm-commits
mailing list