[PATCH] D156497: [BPF] Emit UNDEF rather than constant 0
Yonghong Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 3 22:27:05 PDT 2023
yonghong-song added inline comments.
================
Comment at: llvm/test/Bindings/llvm-c/many_args2.ll:12
+; Before this test was introduced, the BPF backend would generate incorrect-but-viable code
+; that would pass the verifier and violate user expectations at runtime.
+;
----------------
Could you explain what does the following mean?
```
Before this test was introduced, the BPF backend would generate incorrect-but-viable code that would pass the verifier and violate user expectations at runtime.
```
================
Comment at: llvm/test/Bindings/llvm-c/struct_ret2.ll:7
+; Before this test was introduced, the BPF backend would generate incorrect-but-viable code
+; that would pass the verifier and violate user expectations at runtime.
+;
----------------
The same here. I guess I must miss something. Do you mean bpf backend generates incorrect code, or it detects incorrect condition but proceed and eventually report a success rather than a failure?
I must miss something here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156497/new/
https://reviews.llvm.org/D156497
More information about the llvm-commits
mailing list