[10/13] lto: drop dummy partition mapping

Message ID orv8lxea5a.fsf@lxoliva.fsfla.org
State Accepted
Headers
Series [01/13] scoped tables: insert before further lookups |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Alexandre Oliva Dec. 27, 2022, 4:35 a.m. UTC
  When adding a catch-all partition, we map NULL to it.  That mapping is
ineffective and unnecessary.  Drop it.

Regstrapped on x86_64-linux-gnu.  Ok to install?


for  gcc/lto/ChangeLog

	* lto-partition.cc (lto_1_to_1_map): Drop NULL partition
	mapping.
---
 gcc/lto/lto-partition.cc |    1 -
 1 file changed, 1 deletion(-)
  

Comments

Jeff Law Dec. 27, 2022, 3:34 p.m. UTC | #1
On 12/26/22 21:35, Alexandre Oliva via Gcc-patches wrote:
> 
> When adding a catch-all partition, we map NULL to it.  That mapping is
> ineffective and unnecessary.  Drop it.
> 
> Regstrapped on x86_64-linux-gnu.  Ok to install?
> 
> 
> for  gcc/lto/ChangeLog
> 
> 	* lto-partition.cc (lto_1_to_1_map): Drop NULL partition
> 	mapping.
OK
jeff
  

Patch

diff --git a/gcc/lto/lto-partition.cc b/gcc/lto/lto-partition.cc
index ebb9c3abe128c..654d67f272e92 100644
--- a/gcc/lto/lto-partition.cc
+++ b/gcc/lto/lto-partition.cc
@@ -333,7 +333,6 @@  lto_1_to_1_map (void)
       else
 	{
 	  partition = new_partition ("");
-	  pmap.put (NULL, partition);
 	  npartitions++;
 	}