llvm-project
8e2a5e37 - [DA] Consolidate the core logic of the Weak Zero SIV tests (NFCI) (#185577)

Commit
25 days ago
[DA] Consolidate the core logic of the Weak Zero SIV tests (NFCI) (#185577) There have existed two functions `weakZeroSrcSIVtest` and `weakZeroDstSIVtest`, which are almost identical, except for some minor differences (e.g., the Direction to be updated). This patch consolidates the shared core logic into a single function `weakZeroSIVtestImpl` then calls it from both `weakZeroSrcSIVtest` and `weakZeroDstSIVtest`, passing the appropriate parameters to handle the differences. This reduces code duplication and improves maintainability.
Author
Parents
Loading