diff options
author | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | 2022-11-07 11:32:44 +0000 |
---|---|---|
committer | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | 2022-11-08 07:51:48 +0000 |
commit | b5f9972345f0305d6e71cc3cddbb1da65fd298d5 (patch) | |
tree | 8946052f7e8d259da186b7979bb5cadfef82f6eb /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp | |
parent | 13f83365cdb5bb752066ee8f4149ae24dfe46cf1 (diff) | |
download | llvm-b5f9972345f0305d6e71cc3cddbb1da65fd298d5.zip llvm-b5f9972345f0305d6e71cc3cddbb1da65fd298d5.tar.gz llvm-b5f9972345f0305d6e71cc3cddbb1da65fd298d5.tar.bz2 |
[SIFoldOperands] Small code cleanups, NFC.
I've been trying to understand the backend better and decided to read the code of this pass.
While doing so, I noticed parts that could be refactored to be a tiny bit clearer.
I tried to keep the changes minimal, a non-exhaustive list of changes is:
- Stylistic changes to better fit LLVM's coding style
- Removing dead/useless functions (e.g. FoldCandidate had getters, but it's a public struct!)
- Saving regs/opcodes in variables if they're going to be used multiple times in the same condition
Reviewed By: arsenm, foad
Differential Revision: https://reviews.llvm.org/D137539
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions