summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/GlobalISel/CombinerHelperCompares.cpp
AgeCommit message (Collapse)Author
2024-12-20Make CombinerHelper methods const (#119529)Paul Bowen-Huggett
There are a number of backends (specifically AArch64, AMDGPU, Mips, and RISCV) which contain a “TODO: make CombinerHelper methods const” comment. This PR does just that and makes all of the CombinerHelper methods const, removes the TODO comments and makes the associated instances const. This change makes some sense because the CombinerHelper class simply modifies the state of _other_ objects to which it holds pointers or references. Note that AMDGPU contains an identical comment for an instance of AMDGPUCombinerHelper (a subclass of CombinerHelper). I deliberately haven’t modified the methods of that class in order to limit the scope of the change. I’m happy to do so either now or as a follow-up.
2024-11-08[GlobalISel] Remove unused includes (NFC) (#115429)Kazu Hirata
Identified with misc-include-cleaner.
2024-09-17[GlobalIsel] Canonicalize G_FCMP (#108891)Thorsten Schütt
As a side-effect, we start constant folding fcmps.
2024-09-16[GlobalIsel] Canonicalize G_ICMP (#108755)Thorsten Schütt
As a side-effect, we start constant folding icmps. Split out from https://github.com/llvm/llvm-project/pull/105991.