sai18022001

Results comments of sai18022001

Hi @RKSimon , I have some experience with DAG/InstCombine. I'd like to pick this up.

Hi @RKSimon and @arsenm — I've been assigned to this and reviewed both previous PRs. The fix is clear; the blocker is the test. On most in-tree targets, SIGN_EXTEND and...

@RKSimon given @arsenm 's comment, are you okay landing this without a test?

Hi @134ARG, just checking in on this. Are you still actively looking into a fix ? If you've gotten busy and you want to hand it off, I would love...

H @Andarwinux @hstk30-hw , I'm interested in working on this. plan is to add a rule in DAGCombiner to fold the SELECT node directly into a CTPOP node but only...

@Andarwinux you;re right that we've to be careful with case 1 and case 2. my plan is to implement fold in `DAGCombiner` using `TLI.isCtpopFast(VT)` for case 3 : `isCtpopFast` will...

@Andarwinux @hstk30-hw i have implemented suggested fold in `DAGCombiner::visitSELECT` and `DAGCombiner::visitVSELECT`. basically the code looks for specific pattern like if x is 0 or 1, use x otherwise count the...

@RKSimon @Andarwinux What @Andarwinux said. The profitability of scalar fold is entirely target-dependent. By placing this in `DAGCombiner`, we can use `TLI.isCtpopFast(VT)` to gracefully back off for scalars on unsupported...

@RKSimon Thanks for the pointer. I'll move this to the middle-end using `TTI::getPopcntSupport`. It is much cleaner. Should this live in `InstCombineSelect.cpp` or is there more appropriate pass you'd recommend...

@RKSimon Thanks for the direction. The pattern can appear in two IR forms: 1. **Select form** — `select (icmp ule X, 1), X, ctpop(X)` → handled in **InstCombine**, folding to...