[PATCH] D123467: [NFC][CodeGen] Use ArrayRef in TargetLowering functions
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 09:59:39 PDT 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:747
+ ISD::SELECT_CC},
+ VT, Expand);
for (MVT InnerVT : MVT::fixedlen_vector_valuetypes()) {
----------------
craig.topper wrote:
> I'm not sure this an improvement. It's one line longer and you have to look quite a bit further ahead to understand what it's doing. Maybe there's some middle ground of breaking this up into logical groups that would reduce the number of lines. Like putting all the CTPOIP/CTTZ/CTLZ in one group? @RKSimon what do you think?
I'm really not keen on most of these changes tbh - it makes it a lot tricker to notice individual opcodes, and the types are even trickier to keep track of.
I appreciate the attempt, but unless there's a bigger plan here that I'm missing I don't think this NFC tidyup is a good idea.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123467/new/
https://reviews.llvm.org/D123467
More information about the llvm-commits
mailing list