[llvm] [polly] IR: Remove uselist for constantdata (PR #137313)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue May 6 00:19:32 PDT 2025


================
@@ -437,6 +443,9 @@ static void shuffleValueUseLists(Value *V, std::minstd_rand0 &Gen,
 }
 
 static void reverseValueUseLists(Value *V, DenseSet<Value *> &Seen) {
+  if (isa<ConstantData>(V))
----------------
nikic wrote:

```suggestion
  if (V->hasUseList())
```

https://github.com/llvm/llvm-project/pull/137313


More information about the llvm-commits mailing list