Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • tests
  • compiler_tests
  • ConstantFolding_test.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Prune unreferenced variables with a constructor initializer · ea78d2bb
    Olli Etuaho authored Jan 09, 2018
    Treat aggregate constructors as having no side effects, which enables
    pruning declarators that have a constructor initializer.
    
    Some logic in RemoveUnreferencedVariables is fixed to make this work
    correctly for structs. The bugs were previously not exposed since
    constructors were treated as having side effects, but now that those
    can be pruned the logic needs to be correct.
    
    BUG=angleproject:2298
    TEST=angle_unittests
    
    Change-Id: I6fbe61a9e82065196baa29c200bf556fc21d8962
    Reviewed-on: https://chromium-review.googlesource.com/856499Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    ea78d2bb
ConstantFolding_test.cpp 51.4 KB
EditWeb IDE
×

Replace ConstantFolding_test.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.