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 ↗ | (On Diff #26468) | Here I prefer the original version, for me it seems more natural to express the logic. |
lib/Transforms/Vectorize/LoopVectorize.cpp | ||
5218–5220 | LGTM. | |
lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
171–173 | LGTM. | |
1703 | 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.
LGTM.