This issue comes from case in file test/CodeGen/PowerPC/lsr-insns-cost.ll
Three iteration IVs are used while we expect one. This is because, on PowerPC, register number is 1st priority for lsr cost model now.
This patch changes instruction number as 1st priority.
The "add" here is new added ? Does it mean that, for this case, it produces bad code ?