mehdi_amini added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:10811-10813
+ Ops.reserve(Ops.size() + 1);
Ops.push_back(Ops[0]);
Ops.erase(Ops.begin());
----------------
njames93 wrote:
> Probably a little off topic, but shouldn't this be refactored as a rotate.
> Has the advantage that it will never allocate.
>
Well spotted! I didn't even think about what the code was doing and fixed it
mechanically...
I pushed this separately:
https://github.com/llvm/llvm-project/commit/42e88bd6b185
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84293/new/
https://reviews.llvm.org/D84293
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits