[PATCH] D101840: [InstCombine] ctlz(x) -> 0 if x is known negative number
    Dávid Bolvanský via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue May  4 14:02:05 PDT 2021
    
    
  
xbolva00 abandoned this revision.
xbolva00 added a comment.
In D101840#2737160 <https://reviews.llvm.org/D101840#2737160>, @craig.topper wrote:
> In D101840#2736994 <https://reviews.llvm.org/D101840#2736994>, @xbolva00 wrote:
>
>> Moved to InstCombine.
>
> Your test already passes before your change. If the Known bits is negative, PossibleZeros and DefiniteZeros will both be 0 which triggers the PossibleZeros == DefiniteZeros case.
ah, yes.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101840/new/
https://reviews.llvm.org/D101840
    
    
More information about the llvm-commits
mailing list