Craig Topper 4bcfc41846 [SelectionDAG] Teach computeKnownBits that a nsw self multiply produce a positive value.
This matches what we do in IR. For the RISC-V test case, this allows
us to use -8 for the AND mask instead of materializing a constant in a register.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D127335
2022-06-08 14:55:58 -07:00
..
2020-11-12 08:37:46 +00:00
2020-07-16 11:10:53 +01:00
2021-08-17 14:10:33 +01:00
2021-08-17 14:10:33 +01:00
2021-08-17 14:10:33 +01:00
2021-08-17 14:10:33 +01:00
2021-02-02 11:09:31 +00:00
2021-02-02 11:09:31 +00:00
2021-08-17 14:10:33 +01:00
2021-08-17 14:10:33 +01:00
2022-02-14 11:55:40 +00:00
2021-08-17 14:10:33 +01:00
2021-08-17 14:10:33 +01:00
2021-08-17 14:10:33 +01:00
2021-08-17 14:10:33 +01:00
2022-02-07 15:47:53 +00:00
2022-02-07 15:47:53 +00:00
2022-02-07 15:47:53 +00:00