[clang] [clang-repl] Change the default optimization for hip device code to O3 (PR #242296)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 13 05:50:48 PST 2026
================
@@ -395,7 +395,7 @@ IncrementalCompilerBuilder::createOffload(bool device, OffloadType Type) {
const bool HipEnabled = Type == OffloadType::HIP;
std::vector<const char *> Argv;
- Argv.reserve(5 + 4 + UserArgs.size());
+ Argv.reserve(5 + 5 + UserArgs.size());
----------------
vgvassilev wrote:
Can we move these magic numbers into a constant?
https://github.com/llvm/llvm-project/pull/242296
More information about the cfe-commits
mailing list