From 19903f1a69a4ebd0e6de92dc926b309e5ed87b3a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 29 Nov 2004 13:52:14 -0700 Subject: Simplify trivial casts (and handle pointers specially). This does trivial simplification of casting to the same typesize. HOWEVER. We split casts up into whether they cast to a dereferencable pointer type or not, and we don't simplify pointer casts. This should mean that if we ever want to do type-based alias analysis, we can still avoid casted accesses. (If we do type-based alias analysis, we'll also need to make a union access do a cast. Which we probably should do anyway). --- linearize.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linearize.h') diff --git a/linearize.h b/linearize.h index 0db5a43..c1ba1b8 100644 --- a/linearize.h +++ b/linearize.h @@ -151,6 +151,7 @@ enum opcode { OP_PHI, OP_PHISOURCE, OP_CAST, + OP_PTRCAST, OP_CALL, OP_VANEXT, OP_VAARG, -- cgit v1.2.3-65-gdbad