[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparse
Subject: Re: [RFC][PATCH 0/3] implement pseudo->ctype
From: Christopher Li <sparse () chrisli ! org>
Date: 2012-06-22 17:59:51
Message-ID: CANeU7Q==MEahGWuUMFKybp4FQrUn4MBn=euhvF9wcFLTKHOvRw () mail ! gmail ! com
[Download RAW message or body]
On Thu, Jun 21, 2012 at 7:08 PM, Xi Wang <xi.wang@gmail.com> wrote:
> On Jun 21, 2012, at 6:00 PM, Christopher Li wrote:
> https://github.com/xiw/sparse/commit/7072002
>
> Then we have:
>
> and.64 %r2 <- %arg1, $0x1fffffff
> cast.32 %r3 <- (64) %r2
> ret.32 %r3
>
> Does this make sense? Or should we just provide an option to turn
> off all sparse simplifications, since backends usually have their own
> optimization passes?
Adding the cast from 64 to 32 bit make sense.
The sparse checker can still benefit from the simplifications. I think
it is OK we turn off those simplifications for sparse-llvm back end.
I want to have this module that, the back end can pick to chose
what kind of simplification/optimization done to the linearized
instructions.
I think the sparse-llvm back end need a different code path in the
front end for things like GEP any way.
Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic