Ian Lance Taylor 0e68d70b7f compiler: optimize 0,1,2-case select statement
For a select statement with zero-, one-, or two-case with a
    default case, we can generate simpler code instead of calling the
    generic selectgo. A zero-case select is just blocking the
    execution. A one-case select is mostly just executing the case. A
    two-case select with a default case is a non-blocking send or
    receive. We add these special cases for lowering a select
    statement.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/184998

From-SVN: r273034
2019-07-04 02:20:37 +00:00
..
2019-03-19 14:00:59 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-02-26 15:38:12 +00:00
2019-01-18 19:04:36 +00:00
2019-02-26 01:00:39 +00:00
2019-01-18 19:04:36 +00:00
2019-02-26 01:00:39 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-04-08 18:36:25 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-02-26 01:00:39 +00:00
2019-02-01 21:57:36 +00:00
2019-04-08 18:36:25 +00:00
2019-05-03 17:15:54 +00:00
2019-03-18 20:27:59 +00:00
2019-02-01 21:57:36 +00:00
2019-01-18 19:04:36 +00:00
2019-02-26 01:00:39 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-02-26 01:00:39 +00:00
2019-01-18 19:04:36 +00:00
2019-02-26 01:00:39 +00:00
2019-03-18 20:27:59 +00:00
2019-02-01 21:57:36 +00:00
2019-01-18 19:04:36 +00:00