[all-commits] [llvm/llvm-project] 49fcfa: [GVN] Turn off ScalarPRE for TokenLike Types (#156...

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Tue Sep 2 14:17:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49fcfaa15aeeed147280e6e39d802ac712ed3d74
      https://github.com/llvm/llvm-project/commit/49fcfaa15aeeed147280e6e39d802ac712ed3d74
  Author: Farzon Lotfi <farzonlotfi at microsoft.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/GVN.cpp
    A llvm/test/Transforms/GVN/PRE/no-phi-translate.ll

  Log Message:
  -----------
  [GVN] Turn off ScalarPRE for TokenLike Types (#156513)

fixes #154407

In HLSL the GVNPass was adding a phi node on
a target extention type.
https://hlsl.godbolt.org/z/sc14YenEe

This is something we cleaned up in a past PR
(https://github.com/llvm/llvm-project/pull/154620) by introducing
`isTokenLikeTy`. In the case of the GVN pass the target extention type
was still making its way through. This change makes it so if we see this
type we don't do PRE.



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