[PATCH] D147173: [RISCV] Merge SExtWRemoval and StripWSuffix into a single pass.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 16:23:57 PDT 2023


craig.topper added a comment.

In D147173#4232115 <https://reviews.llvm.org/D147173#4232115>, @asb wrote:

> In D147173#4232034 <https://reviews.llvm.org/D147173#4232034>, @craig.topper wrote:
>
>> In D147173#4231929 <https://reviews.llvm.org/D147173#4231929>, @asb wrote:
>>
>>> LGTM. I'd note that clang-format prefers different formatting for some of the functions here - it's probably worth reformatting while you're doing this merge into a new pass.
>>
>> Is it just the switch statement I intentionally wrote with the lines compacted?
>
> There were other instances too, but I ran it after applying D147174 <https://reviews.llvm.org/D147174> so may have been from changed lines there. As for the switch - it's short enough I personally wouldn't bother opting out of clang-format's preferences, but I don't have a problem with it as is.

Ok I fixed D147174 <https://reviews.llvm.org/D147174> when I committed it.

For the switch I like it on one line because it shows it makes it easy to see the correspondence between W and non-W across the line. And having the components lined up for each line.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147173/new/

https://reviews.llvm.org/D147173



More information about the llvm-commits mailing list