[all-commits] [llvm/llvm-project] d6ded9: [Codegen] Change getSpillSize/getReloadSize to Loc...
David Green via All-commits
all-commits at lists.llvm.org
Sun Feb 25 08:23:09 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d6ded91121fa02837ef6c8c7f06d98ccf4a0fe16
https://github.com/llvm/llvm-project/commit/d6ded91121fa02837ef6c8c7f06d98ccf4a0fe16
Author: David Green <david.green at arm.com>
Date: 2024-02-25 (Sun, 25 Feb 2024)
Changed paths:
M llvm/include/llvm/CodeGen/MachineInstr.h
M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
M llvm/lib/CodeGen/MachineInstr.cpp
Log Message:
-----------
[Codegen] Change getSpillSize/getReloadSize to LocationSize. NFC (#82636)
This is a small part of #70452, attempting to take a small simpler part
of it in isolation to simplify what remains. It changes the getSpillSize,
getFoldedSpillSize, getRestoreSize and getFoldedRestoreSize methods to return
optional<LocationSize> instead of unsigned. The code is intended to be the
same, keeping the optional<> to specify when there was no size found, with some
minor adjustments to make sure that unknown (~UINT64_C(0)) sizes are handled
sensibly. Hopefully as more unsigned's are converted to LocationSize's the use
of ~UINT64_C(0) can be cleaned up too.
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