// RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s

void foo();
void bar();

void fold_if(int a, int b) {
  // CHECK: define {{.*}} @fold_if(
  // CHECK-NOT: = phi
  // CHECK: }
  if (a && b)
    foo();
  else
    bar();
}

void fold_for(int a, int b) {
  // CHECK: define {{.*}} @fold_for(
  // CHECK-NOT: = phi
  // CHECK: }
  for (int i = 0; a && i < b; ++i) foo();
  for (int i = 0; a || i < b; ++i) bar();
}

Test that simple expressions are simplified at -O0
CodeGen: Test that simple expressions are simplified at -O0

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@193995 91177308-0d34-0410-b5e6-96231b3b80d8
