| | | | --- | --- | | Bugzilla Link | [46160](https://llvm.org/bz46160) | | Version | trunk | | OS | Linux | | CC | @RKSimon,@rotateright | ## Extended Description bool f(int a, int b, int c) { return (a == b) && (b == c) && (a == c); } This can be optimized to `return (a == b) && (a == c);`. GCC does this transformation, but LLVM does not.