[all-commits] [llvm/llvm-project] 0278de: [Hexagon] Generate TargetConstant in SelectAnyInt

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Fri Apr 22 10:42:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0278dee1e577d6ddcf158ce4e18261eae549da94
      https://github.com/llvm/llvm-project/commit/0278dee1e577d6ddcf158ce4e18261eae549da94
  Author: Krzysztof Parzyszek <kparzysz at quicinc.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
    A llvm/test/CodeGen/Hexagon/autohvx/isel-const-splat-imm.ll

  Log Message:
  -----------
  [Hexagon] Generate TargetConstant in SelectAnyInt

At some point in instruction selection, A2_tfrsi Constant:i32<...> was
created, where the "Constant" came from SelectAnyInt. Since it wasn't
a TargetConstant, it was selected again, leading to
  %vreg = A2_tfrsi ...
  ...   = A2_tfrsi %vreg
which is not a valid code.




More information about the All-commits mailing list