[RISCV] Remove unnecessary use of IRBuilder from RISCVCodeGenPrepare.
authorCraig Topper <craig.topper@sifive.com>
Sun, 17 Jul 2022 17:59:47 +0000 (10:59 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sun, 17 Jul 2022 17:59:54 +0000 (10:59 -0700)
commit73f766ca9a08d570c5831b815902189aa5568f78
tree3fa1710fa44d9083f0722c8434c69bfc7b481c56
parentee6267c4431353f114889e84c9fa1accd890de34
[RISCV] Remove unnecessary use of IRBuilder from RISCVCodeGenPrepare.

We're creating single instruction to replace another instruction.
We can insert using the InsertBefore operand of the constructor.
Then copy the debug location.
llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp