Skip to content
  • Gert Wollny's avatar
    microsoft/compiler: reduce bitcasts · ea5ea53e
    Gert Wollny authored and Erik Faye-Lund's avatar Erik Faye-Lund committed
    
    
    The values are stored as-in in the ssa value pool, unless the according slot
    already contains type information (e.g. because the valus is used in a PHI
    instruction). In this latter case the value is stored with the predefined
    type. When a value is loaded the type is checked against the expectation
    and a cast is emitted if necessary.
    
    For pointers an extra function is used that (for now) returns
    the plain type.
    
    v2: use get_src_ptr also in load function
    
    Signed-off-by: default avatarGert Wollny <gert.wollny@collabora.com>
    ea5ea53e