Sirui Mu
Sirui Mu
> Or maybe it is better to emit these allocas to the correct place at the very first if possible? It will be better to adjust the "incorrect" IR. The...
> After revisit the problem, I am wondering if this is a naming problem. I mean, if we can fix the problem by assigning different names to %4 and %5...
Thanks for your time working on this! The current changes are not related to ClangIR and it's not an appropriate way to resolve #952 . Given the following input code:...
@liusy58 The `getelementptr` instruction is actually emitted in the `CodeGenFunction::EmitCheckedInBoundsGEP` function defined in the file you pointed out. It has two overloads, and you can find that both overloads set...
Here is a more detailed explanation about this issue. Consider the following C/C++ code: ```cpp while (int x = foo()) { /* body */ } ``` According to the standard[^1][^2],...
> In general, I have put my eyes on the IR design of CIR loops and wanted to find time moving it to something that would allow this to happen....
@elhewaty Assigned to you.
> I guess Clang is taking advantage of the fact that the struct pointer must be 4-byte aligned? Indeed, another interesting example to showcase this: ```cpp struct Foo { short...
> Do you know if there's a trend in LLVM to pursue one direction more than the other? That could be one good deciding criteria, but both look good to...
> Should we add a -cc1 flag to control this? Sounds good to me! > One more idea: ask on LLVM discourse if folks know why this happens? Great idea....