[PATCH 3/5] volatile stores are never dead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



so they shouldn't be killed.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 memops.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/memops.c b/memops.c
index 31fd2d3eaffc..8020f2e6cf03 100644
--- a/memops.c
+++ b/memops.c
@@ -215,6 +215,8 @@ static bool try_to_kill_store(pseudo_t pseudo, struct instruction *insn,
 			return false;
 		if (dom->opcode == OP_LOAD)
 			return false;
+		if (dom->is_volatile)
+			return false;
 		/* Yeehaa! Found one! */
 		kill_instruction_force(dom);
 	}
-- 
2.31.1




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux