[all-commits] [llvm/llvm-project] 62ce4b: [GlobalISel] Combine narrowScalar of G_ADD and G_S...

Justin Bogner via All-commits all-commits at lists.llvm.org
Wed Feb 3 11:06:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62ce4b048ff76adb4bb67a40aa28f69e0be26349
      https://github.com/llvm/llvm-project/commit/62ce4b048ff76adb4bb67a40aa28f69e0be26349
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

  Log Message:
  -----------
  [GlobalISel] Combine narrowScalar of G_ADD and G_SUB. NFC

These two cases have identical implementations other than an
unreachable part of `G_ADD` that checks if the scalar we're narrowing
is a vector. Combining them to avoid unnecessary divergence.




More information about the All-commits mailing list