lto: drop dummy partition mapping
authorAlexandre Oliva <oliva@adacore.com>
Thu, 29 Dec 2022 17:33:00 +0000 (14:33 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 29 Dec 2022 17:39:47 +0000 (14:39 -0300)
When adding a catch-all partition, we map NULL to it.  That mapping is
ineffective and unnecessary.  Drop it.

for  gcc/lto/ChangeLog

* lto-partition.cc (lto_1_to_1_map): Drop NULL partition
mapping.

gcc/lto/lto-partition.cc

index ebb9c3a..654d67f 100644 (file)
@@ -333,7 +333,6 @@ lto_1_to_1_map (void)
       else
        {
          partition = new_partition ("");
-         pmap.put (NULL, partition);
          npartitions++;
        }