[all-commits] [llvm/llvm-project] 31b4bf: [llvm][NVPTX] Fix RAUW bug in NVPTXProxyRegErasure...

Jeff Niu via All-commits all-commits at lists.llvm.org
Sat Aug 24 10:20:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31b4bf938b46001abbf2a58875047bf13ba083dd
      https://github.com/llvm/llvm-project/commit/31b4bf938b46001abbf2a58875047bf13ba083dd
  Author: Jeff Niu <jeff at modular.com>
  Date:   2024-08-24 (Sat, 24 Aug 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXProxyRegErasure.cpp
    R llvm/test/CodeGen/NVPTX/proxy-reg-erasure-mir.ll
    A llvm/test/CodeGen/NVPTX/proxy-reg-erasure.mir

  Log Message:
  -----------
  [llvm][NVPTX] Fix RAUW bug in NVPTXProxyRegErasure (#105871)

Fix bug introduced in #105730

The bug is in how the batch RAUW is implemented. If we have 

```
%0 = mov %src
%1 = mov %0

use %0
use %1
```

The use of `%1` is rewritten to `%0`, not `%src`. This PR just looks for
a replacement when it maps to the src register, which should
transitively propagate the replacements.



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