Skip to content

Simplification Comparison (Clang9 vs Clang trunk) #69091

Closed
@k-arrows

Description

@k-arrows

Consider the following function:

bool foo(int a, int b)
{
   return (a + 1) || (a * b + b);
}

Clang9 (and GCC) can simplify foo, but Clang trunk cannot.
https://godbolt.org/z/nTj67b956

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions