[all-commits] [llvm/llvm-project] 4b4bc1: [GlobalISel] Do not generate illegal G_SEXTLOADs a...

Konstantin Schwarz via All-commits all-commits at lists.llvm.org
Wed Aug 25 01:14:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b4bc1ea16dec58e828ec3a0154046b10ec69242
      https://github.com/llvm/llvm-project/commit/4b4bc1ea16dec58e828ec3a0154046b10ec69242
  Author: Konstantin Schwarz <konstantin.schwarz at hightec-rt.com>
  Date:   2021-08-25 (Wed, 25 Aug 2021)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    A llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizer-combiner-sextload-from-sextinreg.mir

  Log Message:
  -----------
  [GlobalISel] Do not generate illegal G_SEXTLOADs after legalization

The sext_inreg_of_load combine did not have the isLegalOrBeforeLegalizer check,
leading to the generation of potentially illegal G_SEXTLOADs when run after legalization.

Reviewed By: foad

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




More information about the All-commits mailing list