summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterCoalescer.h
Commit message (Collapse)AuthorAgeFilesLines
* [CodeGen] Fix some Clang-tidy modernize-use-default-member-init and Include ↵Eugene Zelenko2017-09-221-20/+17
| | | | | | What You Use warnings; other minor fixes (NFC). llvm-svn: 314046
* Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC)Alexander Kornienko2015-06-231-1/+1
| | | | | | Apparently, the style needs to be agreed upon first. llvm-svn: 240390
* Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko2015-06-191-1/+1
| | | | | | | | | | | | | The patch is generated using this command: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ llvm/lib/ Thanks to Eugene Kosov for the original patch! llvm-svn: 240137
* mop up: "Don’t duplicate function or class name at the beginning of the ↵Sanjay Patel2014-09-201-25/+21
| | | | | | comment." llvm-svn: 218194
* Canonicalize header guards into a common format.Benjamin Kramer2014-08-131-2/+2
| | | | | | | | | | Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. llvm-svn: 215558
* [C++11] More 'nullptr' conversion. In some cases just using a boolean check ↵Craig Topper2014-04-161-2/+2
| | | | | | instead of comparing to nullptr. llvm-svn: 206356
* Allow overlaps between virtreg and physreg live ranges.Jakob Stoklund Olesen2012-09-061-0/+7
| | | | | | | | | | | | | | | | | The RegisterCoalescer understands overlapping live ranges where one register is defined as a copy of the other. With this change, register allocators using LiveRegMatrix can do the same, at least for copies between physical and virtual registers. When a physreg is defined by a copy from a virtreg, allow those live ranges to overlap: %CL<def> = COPY %vreg11:sub_8bit; GR32_ABCD:%vreg11 %vreg13<def,tied1> = SAR32rCL %vreg13<tied0>, %CL<imp-use,kill> We can assign %vreg11 to %ECX, overlapping the live range of %CL. llvm-svn: 163336
* Remove unused private fields found by clang's new -Wunused-private-field.Benjamin Kramer2012-06-061-3/+2
| | | | | | | | There are some that I didn't remove this round because they looked like obvious stubs. There are dead variables in gtest too, they should be fixed upstream. llvm-svn: 158090
* Extend the CoalescerPair interface to handle symmetric sub-register copies.Jakob Stoklund Olesen2012-05-151-9/+17
| | | | | | | | | | Now both SrcReg and DstReg can be sub-registers of the final coalesced register. CoalescerPair::setRegisters still rejects such copies because RegisterCoalescer doesn't yet handle them. llvm-svn: 156848
* Fixed typo in comment.Lang Hames2012-03-131-1/+1
| | | | llvm-svn: 152610
* Tidy up.Jim Grosbach2012-02-171-2/+2
| | | | llvm-svn: 150820
* Rename member variables to follow coding standards.Jakob Stoklund Olesen2011-08-091-33/+34
| | | | | | No functional change. llvm-svn: 137094
* Move the RegisterCoalescer private to its implementation file.Jakob Stoklund Olesen2011-08-091-141/+0
| | | | | | RegisterCoalescer.h still has the CoalescerPair class interface. llvm-svn: 137088
* Eliminate copies of undefined values during coalescing.Jakob Stoklund Olesen2011-07-261-0/+3
| | | | | | | | | | These copies would coalesce easily, but the resulting value would be defined by a deleted instruction. Now we also remove the undefined value number from the destination register. This fixes PR10503. llvm-svn: 136174
* Remove dead code.Rafael Espindola2011-06-301-88/+0
| | | | llvm-svn: 134148
* make compose and isMoveInstr static functions.Rafael Espindola2011-06-291-7/+0
| | | | llvm-svn: 134093
* Remove unused methods.Rafael Espindola2011-06-261-13/+0
| | | | llvm-svn: 133900
* There is only one register coalescer. Merge it into the base class andRafael Espindola2011-06-261-137/+118
| | | | | | remove the analysis group. llvm-svn: 133899
* merge SimpleRegisterCoalescing.h into RegisterCoalescer.h.Rafael Espindola2011-06-261-1/+127
| | | | llvm-svn: 133896
* Move RegisterCoalescer.h to lib/CodeGen.Rafael Espindola2011-06-261-0/+244
llvm-svn: 133895
OpenPOWER on IntegriCloud