[all-commits] [llvm/llvm-project] 52510d: [GlobalISel] Bail on G_PHI narrowing of odd types ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 5 09:29:00 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 52510d84802b55ecd80a904ca259adfecffc5be1
      https://github.com/llvm/llvm-project/commit/52510d84802b55ecd80a904ca259adfecffc5be1
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    A llvm/test/CodeGen/AArch64/pr48188.ll

  Log Message:
  -----------
  [GlobalISel] Bail on G_PHI narrowing of odd types (PR48188)

The current narrowing code for G_PHI can only handle the case
where the size is a multiple of the narrow size. If this is not
the case, fall back to SDAG instead of asserting.

Original patch by shepmaster.

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

(cherry picked from commit c35761db0f078f74550ef56bfc0745c162d76967)




More information about the All-commits mailing list