[LoongArch] Add tests showing the optimization pipeline
authorWeining Lu <luweining@loongson.cn>
Fri, 16 Dec 2022 09:50:17 +0000 (17:50 +0800)
committerWeining Lu <luweining@loongson.cn>
Fri, 16 Dec 2022 10:09:50 +0000 (18:09 +0800)
commitba9ed24b0382ac984ba32afbb17eb85f34ec0151
treec3490ab4a88e88cadb031b8820391c093c172680
parent3caf301a8be1ebeed466f998bf2b21497f6df760
[LoongArch] Add tests showing the optimization pipeline

Other targets like ARM, AArch64, RISCV and X86 have similar tests.

`O1`, `O2` and `O3` appear to be the same for now. But in future, some
passes may be disabled at lower levels (e.g. `O1`). Hoping we can use
FileCheck prefixes for differences to avoid repeating the contents 3
times.

Reviewed By: xen0n, MaskRay

Differential Revision: https://reviews.llvm.org/D139499
llvm/test/CodeGen/LoongArch/O0-pipeline.ll [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/opt-pipeline.ll [new file with mode: 0644]