Move the bail out logic to before constructing the Result and Lane
vectors. This is both potentially faster, and avoids calling
getNumElements on a potentially scalable vector
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/ConstantFolding.cpp | ||
---|---|---|
2697 | Given that from now on the vector is supposed to have a fixed size, maybe it is also worth defining auto FixedVTy = cast<FixedVectorType>(VTy) and use FixedVTy in place of VTy all through the end of the function? |
Given that from now on the vector is supposed to have a fixed size, maybe it is also worth defining auto FixedVTy = cast<FixedVectorType>(VTy) and use FixedVTy in place of VTy all through the end of the function?