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

Andrzej WarzyƄski via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 5 08:07:17 PST 2026


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

----------------
banach-space wrote:

> Actually, normalize-local-names-entry.c tests that %entryv isn't mistaken for a reference to the entry label, so the name has to start with "entry" to catch that. 

OK, in that case I would make the intent clearer by using `entry` instead of `entryv` for the variable name. Otherwise, it's not obvious whether the name clash is intended.

That said, it looks like Clang's `-fdiscard-value-names` removes the explicit `entry` name for the "entry block". We could use that instead in tests. In fact, that could remove the need for `--normalize-local-names` - could you take a look? 

Sorry for not mentioning this earlier - it's been a while since I worked on the driver. It would definitely be worth double checking (by investigating Clang's source code) what hides behind `-fdiscard-value-names` - just to be on the safe side. 

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


More information about the cfe-commits mailing list