diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-08-03 23:09:38 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-08-03 23:09:38 +0000 |
commit | b87f91b063a0ac853735f2af3bd94fb8551a11ff (patch) | |
tree | 68162dfb4436276c66c8ed6aa4b79c6f096ef67b /lib/CodeGen/SpillPlacement.h | |
parent | 32668ea7a290ee1cb6bfe8cd677cdd4e5df05b4d (diff) | |
download | llvm-b87f91b063a0ac853735f2af3bd94fb8551a11ff.tar.gz llvm-b87f91b063a0ac853735f2af3bd94fb8551a11ff.tar.bz2 llvm-b87f91b063a0ac853735f2af3bd94fb8551a11ff.tar.xz |
Be more conservative when forming compact regions.
Apply twice the negative bias on transparent blocks when computing the
compact regions. This excludes loop backedges from the region when only
one of the loop blocks uses the register.
Previously, we would include the backedge in the region if the loop
preheader and the loop latch both used the register, but the loop header
didn't.
When both the header and latch blocks use the register, we still keep it
live on the backedge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SpillPlacement.h')
-rw-r--r-- | lib/CodeGen/SpillPlacement.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SpillPlacement.h b/lib/CodeGen/SpillPlacement.h index 9d1d676c54..fc412f817c 100644 --- a/lib/CodeGen/SpillPlacement.h +++ b/lib/CodeGen/SpillPlacement.h @@ -107,7 +107,8 @@ public: /// Entry = Exit = PrefSpill, and ChangesValue = false. /// /// @param Blocks Array of block numbers that prefer to spill in and out. - void addPrefSpill(ArrayRef<unsigned> Blocks); + /// @param Strong When true, double the negative bias for these blocks. + void addPrefSpill(ArrayRef<unsigned> Blocks, bool Strong); /// addLinks - Add transparent blocks with the given numbers. void addLinks(ArrayRef<unsigned> Links); |