[all-commits] [llvm/llvm-project] bde103: [Hexagon] Fix optimize address mode pass only hand...

Pranav Bhandarkar via All-commits all-commits at lists.llvm.org
Fri Jan 14 15:45:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bde1032588f7c2630d1be2e5a6d8d067473e61e0
      https://github.com/llvm/llvm-project/commit/bde1032588f7c2630d1be2e5a6d8d067473e61e0
  Author: Pranav Bhandarkar <pranavb at quicinc.com>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp
    M llvm/lib/Target/Hexagon/HexagonPatternsV65.td
    A llvm/test/CodeGen/Hexagon/addrmode-opt-assert.mir

  Log Message:
  -----------
  [Hexagon] Fix optimize address mode pass only handle BaseImmOffset mode

This is a fix for a crash in the HexagonOptAddrMode pass that was looking
for the third operand (offset) in the following instruction that does not,
in fact, have a third operand:

  $r1 = L2_loadw_locked $r1

Additionally, this patch also adds an addrMode value to vgather pseudos
in the Hexagon backend.

Differential Revision: https://reviews.llvm.org/D117133




More information about the All-commits mailing list