Revert "Changed stat passes to count instructions before and after optimizations (#188837)" (#195113)
This reverts commit ea8554e35bcbce927233cf93b709df4c3ba8752b.
Causes compile time regressions on large IR with stats enabled.
dhclient: Improve server and filename validation
* Don't iterate over each string three times; once is enough.
* Reject control characters (anything below space) in addition to the
double quote and backslash.
* If an unsafe character is encountered, discard the string instead of
rejecting the entire lease.
* If backslashes are encountered in the file name option, convert them
to forward slashes instead of rejecting the option.
* Tweak the warning messages a bit. Looking through the rest of the
code, it seems to me that notes generally end with a period while
warnings generally don't.
Fixes: 8008e4b88daf ("dhclient: Check for unexpected characters in some DHCP server options")
PR: 294886
[3 lines not shown]
misc/py-numcodecs: Fix RUN_DEPENDS
- Change from py-numpy to py-numpy
- Do not bump PORTREVISION because this port does not build before
bbea9171d95c59cc03d10c677a166373137d5208 breaks all dependent ports.
For example:
- devel/py-anndata
- devel/py-xarray
- devel/py-xarray-simlab
- devel/py-zarr
- filesystems/py-kerchunk
- graphics/py-imagecodecs
- graphics/py-imageio
- graphics/py-scikit-image
- graphics/py-tifffile
- math/py-mathics
- misc/py-napari
- www/py-sentinelhub
[2 lines not shown]
misc/py-numcodecs: Fix patch-pyproject.toml
The error message is as follows:
===> Configuring for py311-numcodecs-0.16.5
/usr/local/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:104: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
warnings.warn(msg, _BetaConfiguration)
configuration error: `project` must not contain {'license-files'} properties
...
ValueError: invalid pyproject.toml config: `project`
*** Error code 1
Stop.
make: stopped in /usr/ports/misc/py-numcodecs
Approved by: portmgr (blanket)
misc/py-numcodecs: Fix BUILD_DEPENDS
- Add missing py-numpy1
- Remove lang/cython: it is done by USE_PYTHON=cython
The error message is as follows:
===> Configuring for py311-numcodecs-0.16.5
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 385, in <module>
run_setup(with_extensions)
File "setup.py", line 366, in run_setup
+ vlen_extension()
^^^^^^^^^^^^^^^^
File "setup.py", line 208, in vlen_extension
import numpy
ModuleNotFoundError: No module named 'numpy'
...
*** Error code 1
[7 lines not shown]
[AMDGPU] Mark WAIT_ASYNCMARK as zero-size instruction (#195107)
`WAIT_ASYNCMARK` emits no bytes but was inheriting `Size = 4` from
`SOPP_Pseudo`.
Without the fix, #194362 causes: `Size mismatch for: WAIT_ASYNCMARK 1
Expected exact size: 4 Actual size: 0`
---------
Signed-off-by: Yu-Zhewen <zhewenyu at amd.com>
[DAGCombiner] Teach `reduceLoadWidth` to look past `ISD:FREEZE` (#189317)
Teach `DAGCombiner::reduceLoadWidth` to look through freeze SDNodes when
narrowing loads. The narrowed result is then wrapped in freeze to
preserve the original semantics. Currently, several folds were blocked
by the freeze:
```
and(freeze(load), 0xff) -> AssertZext(freeze(zextload, i8))
trunc(freeze(load i32), i8) -> freeze(load i8)
sext_inreg(freeze(load), i8) -> AssertSext(freeze(sextload, i8))
```
and many other patterns due to legalizer or upstream IR passes inserting
freeze. This generally has the positive effects of narrowing the load
type.