xbolva00 added a comment. @RKSimon had some patches for ctpop costs in the cost model.. So maybe he could check my example if the cost model is issue here. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D63004/new/ https://reviews.llvm.org/D63004