]> sourceware.org Git - systemtap.git/commit
PR10719 cont'd: const-fold logical ops
authorJosh Stone <jistone@redhat.com>
Thu, 25 Feb 2010 00:43:06 +0000 (16:43 -0800)
committerJosh Stone <jistone@redhat.com>
Thu, 25 Feb 2010 00:43:06 +0000 (16:43 -0800)
commita7e58d4c674003f192c4c8a834e80a3c23f9ec2e
treede1fe1e773a27384b8b2fc3b8f7c561fe1cdb070
parentf4869658bae06af2e92091cebda75b59d00211d8
PR10719 cont'd: const-fold logical ops

We can compute results between two literals, we can short-circuit some
literals on the left ("0&&x", "1||x"), and we can simplify literals on
the right if the left has no side effect ("x&&0", "x||1").

* elaborate.cxx (const_folder::visit_logical_or_expr): Implement.
  (const_folder::visit_logical_and_expr): Implement.
elaborate.cxx
This page took 0.024403 seconds and 5 git commands to generate.