Skip to content
Commit ac485e40 authored by Noah Goldstein's avatar Noah Goldstein
Browse files

[SelectionDAG] Add/Improve cases in `isKnownNeverZero`

1) Handle casts a bit more cleanly just with a loop rather than with
   recursion.

2) Add additional cases for smin/smax

3 ) For shifts we can also deduce non-zero if the maximum shift amount
    on the known 1s is non-zero.

Differential Revision: https://reviews.llvm.org/D156777
parent 2937d03e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment