Use clang-tidy to simplify boolean conditional return statements
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Richard,
Thanks for cleaning this up. In the first spot I prefer the original version, but the rest look fine (and if you feel strong about the first place too, I don't mind committing the change there as well).
Please mention that it's NFC in the commit message.
Thanks,
Michael
lib/Transforms/Vectorize/BBVectorize.cpp | ||
---|---|---|
937–938 | Here I prefer the original version, for me it seems more natural to express the logic. | |
lib/Transforms/Vectorize/LoopVectorize.cpp | ||
4461–4462 | LGTM. | |
lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
154–155 | LGTM. | |
1643 | LGTM. |
Comment Actions
I don't have commit access. Subsequent improvements to clang-tidy based on feedback from these reviews resulted in the one exception you noted no longer being generated as a simplification per LLVM/Clang coding preferences.
Here I prefer the original version, for me it seems more natural to express the logic.