[all-commits] [llvm/llvm-project] 07dc85: [NVVMReflect] Improve folding inside of the NVVMRe...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Feb 9 11:39:15 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07dc85ba0cc84e7034ad2a0575c644cfeab60b39
      https://github.com/llvm/llvm-project/commit/07dc85ba0cc84e7034ad2a0575c644cfeab60b39
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M llvm/docs/NVPTXUsage.rst
    M llvm/lib/Target/NVPTX/NVVMReflect.cpp
    M llvm/test/CodeGen/NVPTX/nvvm-reflect-arch-O0.ll

  Log Message:
  -----------
  [NVVMReflect] Improve folding inside of the NVVMReflect pass (#81253)

Summary:
The previous patch did very simple folding that only worked for driectly
used branches. This patch improves this by traversing the use-def chain
to sipmlify every constant subexpression until it reaches a terminator
we can delete. The support should work for all expected cases now.




More information about the All-commits mailing list