[clang] [llvm] [UpdateTestChecks][Clang][CIR] Add support for CIR in update_cc_test_checks.py (PR #241654)

Vicky Nguyen via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 21:55:55 PST 2026


================

----------------
iamvickynguyen wrote:

1. `entryv` is just a name that starts with "entry" 😅 
 
2. These 2 tests look quite similar but they test different things. I'll add clearer comments for these.
Basically, the first one tests that `entry` is dropped when nothing in the body refers to it. If something does (i.e., a phi in a loop), `entry` is kept. Then classic codegen and CIR lowering can't share the same body, because CIR has no entry label in the first block. The script will give an error in this case. This case isn't likely to happen with builtin tests, so I can remove it if you prefer 😄 
The second one tests that after normalizing the names, classic codegen and CIR lowering share the same body. 

https://github.com/llvm/llvm-project/pull/241654


More information about the cfe-commits mailing list