We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8859a4f commit ea85345Copy full SHA for ea85345
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
@@ -213,13 +213,8 @@ RISCVTargetMachine::getSubtargetImpl(const Function &F) const {
213
llvm::bit_floor((RVVBitsMax < 64 || RVVBitsMax > 65536) ? 0 : RVVBitsMax);
214
215
SmallString<512> Key;
216
- Key += "RVVMin";
217
- Key += std::to_string(RVVBitsMin);
218
- Key += "RVVMax";
219
- Key += std::to_string(RVVBitsMax);
220
- Key += CPU;
221
- Key += TuneCPU;
222
- Key += FS;
+ raw_svector_ostream(Key) << "RVVMin" << RVVBitsMin << "RVVMax" << RVVBitsMax
+ << CPU << TuneCPU << FS;
223
auto &I = SubtargetMap[Key];
224
if (!I) {
225
// This needs to be done before we create a new subtarget since any
0 commit comments