1. May 25, 2018
  2. May 24, 2018
    • Zaara Syeda's avatar
      [PPC64] Add .toc section after .got section · 85197a08
      Zaara Syeda authored
      PPC64 maintains a compiler managed got in the .toc section. When accessing a
      global variable through got-indirect access, a .toc entry is created for the
      variable. The relocation for the got-indirect access will refer to the .toc
      section rather than the symbol that is actually accessed. The .toc entry
      contains the address of the global variable. We evaluate the offset from
      r2 (which is the TOC base) to the address of the toc entry for the global
      variable. Currently, the .toc is not near the .got. This causes errors because
      the offset from r2 to the toc section is too large. The linker needs to add
      all the .toc input sections to the .got output section, merging the compiler
      managed got with the linker got. This ensures that the offsets from the TOC
      base to the toc entries are not too large.
      
      This patch puts the .toc section right after the .got section.
      
      Differential Revision: https://reviews.llvm.org/D45833
      
      llvm-svn: 333199
      85197a08
    • Jun Bum Lim's avatar
      [LICM] Preserve DT and LoopInfo specifically · dfbe6fa8
      Jun Bum Lim authored
      Summary:
      In LICM, CFG could be changed in splitPredecessorsOfLoopExit(), which update
      only DT and LoopInfo. Therefore, we should preserve only DT and LoopInfo specifically,
      instead of all analyses that depend on the CFG (setPreservesCFG()).
      
      This change should fix PR37323.
      
      Reviewers: uabelho, davide, dberlin, Ka-Ka
      
      Reviewed By: dberlin
      
      Subscribers: mzolotukhin, bjope, mcrosier, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D46775
      
      llvm-svn: 333198
      dfbe6fa8