[VE] Implement FoldImmediate
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Tue, 3 Nov 2020 13:08:57 +0000 (22:08 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Tue, 10 Nov 2020 23:08:32 +0000 (08:08 +0900)
commitdd6f607ea8e71ca3c1fcc63f33402da85f85cd08
tree4c72c2c1f269513333ebcd8fa09e6d1cfec03f0e
parentc8d73d939fa4fda9c87b3979225d02d63062bd68
[VE] Implement FoldImmediate

Implement FoldImmediate for only integer aritihmetic operations.
Add regression tests also.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D91150
16 files changed:
llvm/lib/Target/VE/VE.h
llvm/lib/Target/VE/VEISelDAGToDAG.cpp
llvm/lib/Target/VE/VEInstrInfo.cpp
llvm/lib/Target/VE/VEInstrInfo.h
llvm/lib/Target/VE/VEInstrInfo.td
llvm/test/CodeGen/VE/Scalar/atomic_load.ll
llvm/test/CodeGen/VE/Scalar/atomic_store.ll
llvm/test/CodeGen/VE/Scalar/br_cc.ll
llvm/test/CodeGen/VE/Scalar/cast.ll
llvm/test/CodeGen/VE/Scalar/ctlz.ll
llvm/test/CodeGen/VE/Scalar/cttz.ll
llvm/test/CodeGen/VE/Scalar/fold-imm-addsl.mir [new file with mode: 0644]
llvm/test/CodeGen/VE/Scalar/fold-imm-cmpsl.mir [new file with mode: 0644]
llvm/test/CodeGen/VE/Scalar/int_to_fp.ll
llvm/test/CodeGen/VE/Scalar/select_cc.ll
llvm/test/CodeGen/VE/Scalar/setcc.ll