Revert "Use IRBuilder instead of ConstantInt methods. It simplifies code a little bit."

This reverts commit 183328. It caused pr16244 and broke the bots.
ARM sched model: Add more ALU and CMP thumb instructions

Reapply of 183260.