diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-08 22:46:11 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-08 22:46:11 +0000 |
commit | 5881799d0cccbd814ec1b0f0509df9be1f63c6cb (patch) | |
tree | 3877f470995699b287a14a2b4a5d66f9ffe6e112 /lib/CodeGen/SplitKit.h | |
parent | 5aa3fa6d827e162893534454b2a2c4b6e50884fc (diff) | |
download | llvm-5881799d0cccbd814ec1b0f0509df9be1f63c6cb.tar.gz llvm-5881799d0cccbd814ec1b0f0509df9be1f63c6cb.tar.bz2 llvm-5881799d0cccbd814ec1b0f0509df9be1f63c6cb.tar.xz |
Delete dead code after rematerializing.
LiveRangeEdit::eliminateDeadDefs() will eventually be used by coalescing,
splitting, and spilling for dead code elimination. It can delete chains of dead
instructions as long as there are no dependency loops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index 0e35df0ed6..3f1a03c0ba 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -272,6 +272,9 @@ class SplitEditor { void rewriteComponents(const SmallVectorImpl<LiveInterval*> &Intvs, const ConnectedVNInfoEqClasses &ConEq); + /// deleteRematVictims - Delete defs that are dead after rematerializing. + void deleteRematVictims(); + public: /// Create a new SplitEditor for editing the LiveInterval analyzed by SA. /// Newly created intervals will be appended to newIntervals. |