Advertisement
Guest User

Untitled

a guest
Jun 19th, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.92 KB | None | 0 0
  1. static bool
  2. gimple_match_and_simplify (code_helper code, tree type, tree op0, tree op1,
  3.                tree op2, code_helper * res_code, tree * res_ops,
  4.                gimple_seq * seq, tree (*valueize) (tree))
  5. {
  6.   if (code == COND_EXPR)
  7.     {
  8.       {
  9.     tree o2 = op0;
  10.     tree t0 = NULL_TREE;
  11.     if (TREE_CODE (o2) == BIT_NOT_EXPR)
  12.       {
  13.         t0 = TREE_OPERAND (o2, 0);
  14.         if (do_valueize (valueize, t0))
  15.           {
  16.         {
  17.           tree o3 = t0;
  18.           {
  19.             // @1
  20.             tree o4 = op1;
  21.             {
  22.               // @2
  23.               tree o5 = op2;
  24.               /* simplify 0 */
  25.               {
  26.             tree captures[4] = { };
  27.             captures[0] = o3;
  28.             captures[1] = o4;
  29.             captures[2] = o5;
  30.             *res_code = COND_EXPR;
  31.             res_ops[0] = captures[0];
  32.             res_ops[1] = captures[2];
  33.             res_ops[2] = captures[1];
  34.             gimple_resimplify3 (seq, res_code, type, res_ops,
  35.                         valueize);
  36.             return true;
  37.               }
  38.             }
  39.           }
  40.         }
  41.           }
  42.       }
  43.       }
  44.     }
  45.   return false;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement