Thread overview
[Issue 22115] Optimize if (s.a == 3 ? s : null) to if (s.a == 3)
Jul 11, 2021
Walter Bright
Jul 11, 2021
Dlang Bot
Jul 13, 2021
Dlang Bot
July 11, 2021
https://issues.dlang.org/show_bug.cgi?id=22115

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend, performance

--
July 11, 2021
https://issues.dlang.org/show_bug.cgi?id=22115

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #12860 "fix Issue 22115 - Optimize
if (s.a == 3 ? s : null) to if (s.a == 3)" fixing this issue:

- fix Issue 22115 - Optimize if (s.a == 3 ? s : null) to if (s.a == 3)

https://github.com/dlang/dmd/pull/12860

--
July 13, 2021
https://issues.dlang.org/show_bug.cgi?id=22115

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12860 "fix Issue 22115 - Optimize if (s.a == 3 ? s :
null) to if (s.a == 3)" was merged into master:

- 60e35e43b097b91b47369fcce863822b4b0bcff8 by Walter Bright:
  fix Issue 22115 - Optimize if (s.a == 3 ? s : null) to if (s.a == 3)

https://github.com/dlang/dmd/pull/12860

--