[all-commits] [llvm/llvm-project] 181894: [SystemZ] Add check for INIT_UNDEF in getInstSizeI...
tltao via All-commits
all-commits at lists.llvm.org
Thu Apr 10 13:16:42 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 18189430abbbc13b055d029683413e992a3eac2d
https://github.com/llvm/llvm-project/commit/18189430abbbc13b055d029683413e992a3eac2d
Author: tltao <tony.le.tao at gmail.com>
Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths:
M llvm/lib/Target/SystemZ/SystemZLongBranch.cpp
A llvm/test/CodeGen/SystemZ/init-undef.mir
Log Message:
-----------
[SystemZ] Add check for INIT_UNDEF in getInstSizeInBytes (#134661)
Due to some optimization changes, INIT_UNDEF is making its way to
`getInstSizeInBytes` in `llvm/lib/Target/SystemZ/SystemZLongBranch.cpp`
but we do not have an exception there in the assert. Since INIT_UNDEF is
described as being similar to IMPLICIT_DEF and there is a check for
IMPLICIT_DEF, it seems logical to also add a check for INIT_UNDEF.
---------
Co-authored-by: Tony Tao <tonytao at ca.ibm.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list