Details
- Reviewers
hans bkramer eli.friedman lebedev.ri
Diff Detail
Event Timeline
Looks promising. Please make the suggested changes, and please move this patch into D52002. The functionality change and the test should be in the same patch.
test/CodeGen/AArch64/switch-unreachable-default.ll | ||
---|---|---|
1 | I think for a simple case like this, it should be possible to write the assertions manually. | |
10 | No need for dso_local, nocapture, readonly, local_unnamed_addr, or the attributes in #0. Please remove them to simplify the test. | |
13 | Having these checks before the function starts doesn't look right. I think the test should be something like CHECK-LABEL: fn: | |
41 | I'd suggest just taking the switch argument directly as an argument of the function. I.e. make %0 an i8 instead of i32* above, and switch on that directly. Then there's no need to load, trunc, etc, and that will simplify the test. | |
42 | I prefer to use explicit names for the basic blocks, i.e. instead fo %4, call it %default maybe, and then %case0, %case1, etc. for the case blocks. |
llvm-commits is not CC'ed on this revision; llvm-commits is the official record for all reviews, so any patch posted without CC'ing llvm-commits essentially doesn't exist. It looks like you're going to abandon this anyway, but please be more careful in the future.
Thanks Eli for bringing this to my notice. I wasn't aware of this aspect. I thought, the reviews here automatically become the record and I just need to quote the review ID while committing the code. Anyway, as you said, I'll be abandoning this patch and have already moved it to 52002. Thanks again.
I think for a simple case like this, it should be possible to write the assertions manually.