[RISCV] Support folding constant addresses in SelectAddrRegImm.
authorCraig Topper <craig.topper@sifive.com>
Sat, 9 Jul 2022 18:54:52 +0000 (11:54 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sat, 9 Jul 2022 20:12:02 +0000 (13:12 -0700)
commit9c6a2200e280a8612d698e1ba727a6f68b906bc8
treeea9f16a8d0d363ecb71c5caee17086a421cb64fb
parent40866b74bd422ae72ad53270d04568249ed53d69
[RISCV] Support folding constant addresses in SelectAddrRegImm.

We already handled this by folding an ADDI in the post-isel peephole.
My goal is to remove that peephole so this adds the functionality
to isel.
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp