[Hexagon] Make A2_tfrsi not cheap for operands exceeding 16 bits
authorSANTANU DAS <santanudas@codeaurora.org>
Mon, 2 Nov 2020 19:15:40 +0000 (00:45 +0530)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 4 Jan 2022 23:46:26 +0000 (15:46 -0800)
commit52f347010a8c43118293feab05e09a4df52ba04f
tree469d2c093cb111ac919508f0544707dc1d86f988
parent60944d132fe35b774017b7ad05edb55642509642
[Hexagon] Make A2_tfrsi not cheap for operands exceeding 16 bits

This patch aids to reduce code size since it removes generation
of back-to-back A2_tfrsi instructions. It is enabled only at -Os/-Oz.
llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
llvm/lib/Target/Hexagon/HexagonInstrInfo.h
llvm/test/CodeGen/Hexagon/notcheap.ll [new file with mode: 0644]