Coroutines: Only invalidate analyses of lowered functions in CoroCleanup
CoroCleanupPass already invalidates the analyses of the functions it
lowers, but then reported no preserved analyses, which clears every
cached function.
Also stop preserving CFG analyses for lowered functions, since noop
coroutine elision can change the CFG.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[SystemZ] Match more shift and displacement patterns for LXA/LLXA
Add TableGen selection patterns for LXA/LLXA instructions to support:
- Add + shift of an extended value with scaled 20-bit displacement (with base)
- Shift of an extended value with scaled 20-bit displacement (without base)
- Add of an extended value with unscaled 20-bit displacement (LXAB/LLXAB)
Update test cases in lxa-*.ll and llxa-*.ll to cover the new patterns.
Assisted by: IBM Bob
[CIR] Lower va_arg for AMDGPU in CallConvLowering (#244116)
Summary:
AMDGPU classifier rejected every `cir.va_arg` as NYI.
This PR expands `cir.va_arg` the same way classic
`AMDGPUABIInfo::EmitVAArg` does.
The `va_list` is a single pointer into one buffer of 4-byte slots, so
each fetch:
- loads the cursor,
- moves it by the type's alloc size rounded up to 4,
- reads the value at the old cursor with align 4.
Relates to : https://github.com/llvm/llvm-project/issues/220471
Assisted by: claude opus 5.5
Merge tag 'watchdog-for-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull watchdog fixes from Guenter Roeck:
- Core registration and reference counting: clear dangling wd_data
pointers and stop timers/workers on registration failure, release
unclaimed running-watchdog references, avoid unbalanced module_put()
in watchdog_open(), and restore WDOG_HW_RUNNING if stop() fails
- Core locking and keepalive state: add missing wd_data and old_wd_data
locking in open, unregister, and last_hw_keepalive paths, and update
WDOG_ACTIVE and last_keepalive before pinging a running watchdog in
watchdog_start()
- Core suspend/resume: prevent in-flight ping work from re-arming the
keepalive timer and stop the software pretimeout hrtimer while
suspended to avoid spurious pretimeout events
- stm32_iwdg: set drvdata before requesting the pretimeout IRQ to avoid
[19 lines not shown]
[CIR] Canonicalize data layoutin to llvm tranlation
MLIR spell data layout in their own ways. It causes two compatibly
layout string not the same order become mismatch. Add a canonicalize
function to tranlate to llvm one if two are the same layout.
[MC] Allocate ELFUniquingMap entries from the MCContext allocator. NFC (#244796)
Each ELF section's uniquing key, which embeds the group signature for
COMDAT sections, is otherwise malloc'ed and freed separately.
[RISCV] Fix RVV callee-saves in realigned frames
The prologue saves RVV callee-saved registers before it realigns SP
and sets up BP, but their slots were addressed from the realigned SP
or BP. The epilogue reloaded them from the wrong address, BP frames
stored them through the caller's s1, and their CFI was wrong.
Address these slots from FP, which does not move, and derive their
CFI from getFrameIndexReference so the two cannot diverge.
Fixes #244792
Merge tag 'hwmon-for-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon fixes from Guenter Roeck:
- Use per-device lockdep keys in the hwmon core to avoid false-positive
recursive locking warnings when one hwmon device accesses another
- Fix sysfs attribute struct downcast mismatches on big-endian systems
that caused out-of-bounds temp1 array accesses in w83791d/w83792d and
directed all beep writes to channel 0 in nct6775
- Fix nct6775 fan control: initialize target temperature and tolerance
masks/limits on NCT6106/6116/6126, fix swapped normal and critical
temperature tolerance writes, and use tolerance_mask on REG_FAN_MODE
- Reject dell-smm fan_max values above 255 to avoid allocation count
wraparound and invalid SMM calls, and reject PWM writes outside
0..255 to prevent integer overflow from turning fans off
[16 lines not shown]
[SystemZ] Support ISD::AVGCEILS and ISD::AVGCEILU
Mark ISD::AVGCEILS and ISD::AVGCEILU as legal for vector types on z13+
and for i128 on z17 (VectorEnhancements3). Match them to VAVG* and VAVGL*
instructions while preserving mappings for existing s390 intrinsics.
Assisted by: IBM Bob
[SystemZ] Add TableGen patterns for z17 VEVAL ternary logic
Add SelectionDAG patterns to BitwiseVectorOps for canonical 3-input
bitwise boolean operations on z17 (VEVAL), including:
- Majority and Full Adder carry variants (immediate 23)
- InstCombine canonical and commuted Choose/multiplexer forms
(immediates 83, 53)
- 3-way bitwise difference and AND-NOT/XOR combinations (immediates 6,
16, 96, 112, 120, 135)
- Inverted/negated forms (immediates 172, 225, 232, 241, 246, 247)
This collapses previously unhandled 3-way boolean expressions from
multiple vector instructions into a single VEVAL instruction.
Update and add test coverage in vec-eval.ll.
Assisted by: IBM Bob
Clear the login rate limit in the password expiry unit tests
auth.login_ex over TCP is limited to 20 calls per minute per IP, and
logins made by earlier tests in the run count against that limit.
test__password_expired and test__password_expiry_warning could then
fail with EBUSY "Rate Limit Exceeded" depending on test order and
timing.
Clear the rate limit cache before these two tests only.
Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull bpf fixes from Alexei Starovoitov:
"Mostly sockmap fixes as promised, plus uprobe ctx rewrite via bpf and
cgroup-bpf fixes.
- Reject writable map iterators on read-only maps (Adethya
Srinivasan)
- Various sockmap fixes (Alexei Starovoitov):
- Clear the redirect target before the sk_msg prog runs
- Check that the redirected message is the cork
- Leave sk_stream_wait_memory() once the socket is dead
- Keep the rest of the cork after a redirect
- Don't let an SK_PASS verdict cover the next message
- Subtract all dropped bytes from the return value of sendmsg()
- Clear the end mark of elements added by bpf_msg_push_data() and
bpf_msg_pop_data()
[72 lines not shown]