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
  • compiler
  • translator
  • SeparateArrayInitialization.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Promote and fold indexing nodes similarly to other binary ops · 3272a6d3
    Olli Etuaho authored Aug 29, 2016
    Indexing nodes now get their type set in TIntermBinary::promote, same
    as math and logic ops. They are also constant folded through
    TIntermBinary::fold() instead of having special functions for constant
    folding them in ParseContext.
    
    Index nodes for struct and interface block member access now always
    have integer type, instead of sometimes having the type of the field
    they were used to access.
    
    Usage of TIntermBinary constructor is cleaned up so only the
    constructor that takes in left and right operands is used. The type
    of TIntermBinary nodes is always determined automatically.
    
    Together these changes make the code considerably cleaner.
    
    Note that the code for constant folding for array indexing is actually
    never hit because constant folding array constructors is still
    intentionally disabled in the code.
    
    BUG=angleproject:1490
    TEST=angle_unittests
    
    Change-Id: Ifcec45257476cdb0d495c7d72e3cf2f83388e8c5
    Reviewed-on: https://chromium-review.googlesource.com/377961Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    3272a6d3
SeparateArrayInitialization.cpp 3.15 KB
EditWeb IDE
×

Replace SeparateArrayInitialization.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.