Yes, where possible, the compiler will optimize away the operators just like it does with |>
.
Just as a fun example, the compiler will optimize this code
let add a b = a + b
let test() = (1,2) ||> add
to this
3
And even if you parameterised test
let test t = t ||> add
it would compile to this C# equivalent
int test(int x, int y) { return x + y; }
In real, more complex code, you might not see such extreme optimizations but it gives you an idea of what the compiler can do.