[PATCH] D74484: [AggressiveInstCombine] Add support for ICmp instr that feeds a select intsr's condition operand.

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 05:23:08 PDT 2020


spatel added a comment.

In D74484#1963795 <https://reviews.llvm.org/D74484#1963795>, @aymanmus wrote:

> @spatel: Basically the test cases with the real motivation are the first 4.


Do you mean the first 4 with diffs, or the first 4 that are being added as new tests?

> Where most of the other cases are there to check various "edge" cases of the added code behavior.
>  I think, that even if some of the tests are not in a canonical form (and can be optimized by instcombine), we still have an added value having them here in order to check the behavior of this specific pass with similar cases.
>  Don't you agree?

Yes, I agree that we want to have tests for edge cases to make sure that the logic is correct here. But we also should have tests that show why this patch is necessary - functions that could not be solved in regular instcombine easily.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74484/new/

https://reviews.llvm.org/D74484





More information about the llvm-commits mailing list