llvm / llvm/Polygeist

error: 'arith.extsi' op operation destroyed but still has uses

Open
#335 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
624
Forks
170
PR merge metrics
No merged PRs in 30d

Description

Using the latest commit. Here is a minimal reproducible code:

```C
#include

void foo(uint16_t *m, uint16_t len) {
for(uint16_t i = 0; i < len; i++){
m[i] = 1;
}
for(uint16_t i = 0; i < len; i++) {
m[len - i - 1] = 1;
}
}
```

This could be potentially related to #322.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported error with the minimal C program using the latest commit. Read the related discussion in issue #322 and trace where the arith.extsi operation is destroyed while still used. Done means the reproducer no longer reports the operation-destroyed error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.