Drop noundef for return values that are replaced by void and make it
illegal to put noundef on a void value.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/test/Transforms/DeadArgElim/returned.ll | ||
|---|---|---|
| 48 | could you also add a test where noundef needs to be dropped? Here it seems like it is added. | |
| llvm/test/Transforms/DeadArgElim/returned.ll | ||
|---|---|---|
| 48 | Here it is dropped. I add it in the input and the output doesn't have any attributes (it's void) | |
Comment Actions
LGTM, thanks!
| llvm/test/Transforms/DeadArgElim/returned.ll | ||
|---|---|---|
| 48 | Oh right, didn't look closely enough. The function gets turned into one that returns void | |
could you also add a test where noundef needs to be dropped? Here it seems like it is added.