[all-commits] [llvm/llvm-project] 7c1241: [GISel] Avoid creating a virtual register we don't...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Dec 9 20:23:45 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c12418021a97545d7e76c876464291932f151e6
      https://github.com/llvm/llvm-project/commit/7c12418021a97545d7e76c876464291932f151e6
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

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

  Log Message:
  -----------
  [GISel] Avoid creating a virtual register we don't need. (#119305)

narrowScalarAddSub was creating a virtual register and then overwriting
the Register variable without using it. Add an else and only create it
when needed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list