[all-commits] [llvm/llvm-project] 7e0802: [clang][CIR] Match CIR return value with OGCG usin...

Chibuoyim (Wilson) Ogbonna via All-commits all-commits at lists.llvm.org
Tue Sep 29 15:03:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e0802ba5b177e8d753dfd2f0666e4f7ebcf94da
      https://github.com/llvm/llvm-project/commit/7e0802ba5b177e8d753dfd2f0666e4f7ebcf94da
  Author: Chibuoyim (Wilson) Ogbonna <chibuoyim.faith.ogbonna at huawei.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M clang/test/CodeGen/AArch64/sve/len.c

  Log Message:
  -----------
  [clang][CIR] Match CIR return value with OGCG using mem2reg (#227241)

This fixes the test failure introduced by
[226534](https://github.com/llvm/llvm-project/pull/226534)

Currently, the `sve/len.c` test fails because of this difference between
OGCG and CIR:

```
; classic codegen                  ; CIR (-fclangir)
%2 = mul nuw i64 %1, 16            %6 = mul nuw i64 %5, 16
ret i64 %2                         store i64 %6, ptr %3      ; retval slot
                                   %7 = load i64, ptr %3
                                   ret i64 %7
```
So, adding the return value checks as they are breaks the test.

This adds `mem2reg`, so that the CIR output matches OGCG and the same
return value check works for both.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list