[PATCH] D158256: [RISCV] Fix assertion failure when zcmp extension is enabled.
garvit gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 23:32:38 PDT 2023
garvitgupta08 updated this revision to Diff 553374.
garvitgupta08 added a comment.
Addressed review comments to llvm/test/CodeGen/RISCV/zcmp-prolog-epilog-crash.ll from D158256 <https://reviews.llvm.org/D158256>:
Do we need the hidden and local_unnamed_addr attributes?
DONE
icmp slt i32 poison, poison doesn't make sense. The compiler would be allowed to delete it. So a future optimization could break this test.
DONE
store i32 0, ptr null, align 4 is a store to null which is undefined behavior. So the compiler is allowed to delete it. Again a future optimization could delete it and break this test.
DONE
Use update_llc_test_checks.py
DONE
Though why is there an IR test and a MIR test? The MIR test seems preferable, surely?
Please feel free to drop: llvm/test/CodeGen/RISCV/zcmp-prolog-epilog-crash.ll
Though it looks like the same code is generated for both so can share one prefix?
Actually, there is a difference ...
nounwind
DONE
Space between declaration and definition
DONE
Clean up the IR of these comments?
DONE
Dangling attribute reference
DONE
This seems overly-reduced
Asked for clarification ...
Fix // No newline at end of file
DONE?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158256/new/
https://reviews.llvm.org/D158256
Files:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/test/CodeGen/RISCV/zcmp-prolog-epilog-crash.ll
llvm/test/CodeGen/RISCV/zcmp-prolog-epilog-crash.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158256.553374.patch
Type: text/x-patch
Size: 12224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230825/410eb690/attachment.bin>
More information about the llvm-commits
mailing list