[PATCH] D53152: [Hexagon] Restrict compound instructions with constant value.

Sumanth Gundapaneni via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 11 12:32:43 PDT 2018


sgundapa marked 3 inline comments as done.
sgundapa added inline comments.


================
Comment at: lib/Target/Hexagon/HexagonPatterns.td:262
+// do not generate the compound instructions (S4_andi_asl_ri, S4_ori_asl_ri,
+// S4_andi_lsr_ri, S4_ori_lsr_ri instructions).
+// It is not always profitable, as some times we end up with a transfer.
----------------
kparzysz wrote:
> Those are not the instructions you're trying to avoid.
You are correct. These are the instructions, that need to be avoided.
M4_and_and, M4_and_or,M4_or_and,M4_or_or,M4_xor_and,M4_xor_or


Repository:
  rL LLVM

https://reviews.llvm.org/D53152





More information about the llvm-commits mailing list