[3/6] Delete unnecessary function live_merge_and_clear

Message ID DB6PR0802MB250499F977461F75E2C6A5CBE7860@DB6PR0802MB2504.eurprd08.prod.outlook.com
State New
Headers show
Series
  • [1/6] Compute type mode and register class mapping
Related show

Commit Message

Bin Cheng May 4, 2018, 4:22 p.m.
HI,
This is an obvious patch removing the unnecessary function.

Bootstrap and test on x86_64 and AArch64 ongoing.  Is it OK?

Thanks,
bin
2018-04-27  Bin Cheng  <bin.cheng@arm.com>

	* tree-ssa-live.h (live_merge_and_clear): Delete.

Comments

Richard Biener May 11, 2018, 12:36 p.m. | #1
On Fri, May 4, 2018 at 6:22 PM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> HI,

> This is an obvious patch removing the unnecessary function.

>

> Bootstrap and test on x86_64 and AArch64 ongoing.  Is it OK?


OK.

Richard.

> Thanks,

> bin

> 2018-04-27  Bin Cheng  <bin.cheng@arm.com>

>

>         * tree-ssa-live.h (live_merge_and_clear): Delete.

Patch

From ba6e47da7faba9a31c776a6d06ef052b1ed392a8 Mon Sep 17 00:00:00 2001
From: Bin Cheng <binche01@e108451-lin.cambridge.arm.com>
Date: Wed, 2 May 2018 11:37:34 +0100
Subject: [PATCH 3/6] remove-live_merge_and_clear.txt

---
 gcc/tree-ssa-live.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/gcc/tree-ssa-live.h b/gcc/tree-ssa-live.h
index e62293b..448aaf9 100644
--- a/gcc/tree-ssa-live.h
+++ b/gcc/tree-ssa-live.h
@@ -289,18 +289,6 @@  live_var_map (tree_live_info_p live)
 }
 
 
-/* Merge the live on entry information in LIVE for partitions P1 and P2. Place
-   the result into P1.  Clear P2.  */
-
-static inline void
-live_merge_and_clear (tree_live_info_p live, int p1, int p2)
-{
-  gcc_checking_assert (&live->livein[p1] && &live->livein[p2]);
-  bitmap_ior_into (&live->livein[p1], &live->livein[p2]);
-  bitmap_clear (&live->livein[p2]);
-}
-
-
 /* Mark partition P as live on entry to basic block BB in LIVE.  */
 
 static inline void
-- 
1.9.1