[PATCH] D144319: [SimplifyCFG] Check if the return instruction causes undefined behavior
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 18 06:02:02 PST 2023
nikic added inline comments.
================
Comment at: llvm/test/Transforms/SimplifyCFG/unreachable-eliminate-on-ret.ll:37
+
+define nonnull noundef ptr @test_ret_nonnull_noundef(i1 %cond, ptr %x) {
+; CHECK-LABEL: @test_ret_nonnull_noundef(
----------------
Please also add a test with just nonnull to show that it doesn't fold.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144319/new/
https://reviews.llvm.org/D144319
More information about the llvm-commits
mailing list