Issue 174369
Summary [GISel] Add CTLS (count leading sign bits) handling
Labels llvm:globalisel
Assignees
Reporter RKSimon
    Followup to #173417

Include basic pattern matching:
```
// Fold (ctlz (xor x, (sra x, bitwidth-1))) -> (add (ctls x), 1).
// Fold (ctlz (or (shl (xor x, (sra x, bitwidth-1)), 1), 1) -> (ctls x)
```

CC @topperc 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to