[clang][NFC] Unify `MacroState` `isAmbiguous` and `getModuleInfo` (#197867)
Every call to `MacroState::getModuleInfo`, and `MacroState::isAmbiguous`
are paired in the same function. Rather than doing the same work twice,
just unify them into a single function, `getModuleInfo`, that returns
both pieces of information in a new type `ModuleMacroInfo`.
Unfortunately, `getModuleInfo` and`ModuleMacroInfo` already exist, so
rename them to `getFullModuleInfo` and `FullModuleMacroInfo`,
respectively, since the new type is a subset of the old type. The new
type contains just the pieces consumers care about.
While we're there, use the range constructor of `llvm::DenseSet` instead
of default constructing and calling `insert` in a loop.
[RegAllocFast] Eliminate dead copies (#196056)
github issue: https://github.com/llvm/llvm-project/issues/168201
This patch extends copy elimination in **RegAllocFast** to catch an
additional class of redundant copies. Previously, only identity copies
(where source and destination registers are the same) were marked for
removal.
Now, we check whether the current instruction is dead and remove it if
it is.
The change:
- Updates the copy-elimination condition to include dead destination
operands.
- Improves debug output to be more generic.
This reduces unnecessary instructions and can lead to slightly better
codegen by eliminating dead copies earlier in the fast register
allocation pass.
[DAG] SimplifyMultipleUseDemandedBits - use isIdentityElement to detect identity / fall through operands (#197952)
Now that isIdentityElement uses computeKnownBits we don't have to handle
this locally, and can handle all binops (inc smax/smin/umax/umin etc.)
at the same time
sysutils/py-croniter: Fix shebang
====> Running Q/A tests (stage-qa)
Error: '/usr/bin/env python' is an invalid shebang you need USES=shebangfix for 'lib/python3.11/site-packages/croniter/tests/test_croniter_speed.py'
Error: '/usr/bin/env python' is an invalid shebang you need USES=shebangfix for 'lib/python3.11/site-packages/croniter/tests/test_croniter_range.py'
Error: '/usr/bin/env python' is an invalid shebang you need USES=shebangfix for 'lib/python3.11/site-packages/croniter/tests/test_croniter.py'
Error: '/usr/bin/env python' is an invalid shebang you need USES=shebangfix for 'lib/python3.11/site-packages/croniter/tests/test_croniter_dst_repetition.py'
*** Error code 1
Approved by: portmgr (blanket)