Skip to content
  1. Mar 09, 2009
  2. Mar 08, 2009
  3. Mar 07, 2009
    • Duncan Sands's avatar
      Introduce new linkage types linkonce_odr, weak_odr, common_odr · 12da8ce3
      Duncan Sands authored
      and extern_weak_odr.  These are the same as the non-odr versions,
      except that they indicate that the global will only be overridden
      by an *equivalent* global.  In C, a function with weak linkage can
      be overridden by a function which behaves completely differently.
      This means that IP passes have to skip weak functions, since any
      deductions made from the function definition might be wrong, since
      the definition could be replaced by something completely different
      at link time.   This is not allowed in C++, thanks to the ODR
      (One-Definition-Rule): if a function is replaced by another at
      link-time, then the new function must be the same as the original
      function.  If a language knows that a function or other global can
      only be overridden by an equivalent global, it can give it the
      weak_odr linkage type, and the optimizers will understand that it
      is alright to make deductions based on the function body.  The
      code generators on the other hand map weak and weak_odr linkage
      to the same thing.
      
      llvm-svn: 66339
      12da8ce3
  4. Mar 06, 2009
  5. Mar 05, 2009
    • Devang Patel's avatar
      GlobalOpt only process non constant local GVs while optimizing global vars. · 709d6ac4
      Devang Patel authored
      If non constant local GV named A is used by a constant local GV named B (e.g. llvm.dbg.variable) and B is not used by anyone else then eliminate A as well as B.
      
      In other words, debug info should not interfere in removal of unused GV.
      --This life, and those below, will be ignored--
      
      M    test/Transforms/GlobalOpt/2009-03-03-dbg.ll
      M    lib/Transforms/IPO/GlobalOpt.cpp
      
      llvm-svn: 66167
      709d6ac4
  6. Mar 04, 2009
  7. Mar 03, 2009
  8. Mar 02, 2009
  9. Feb 18, 2009
  10. Feb 17, 2009
  11. Feb 15, 2009
  12. Jan 28, 2009
  13. Jan 25, 2009
  14. Jan 23, 2009
  15. Jan 22, 2009
  16. Jan 18, 2009
    • Duncan Sands's avatar
      BasicAliasAnalysis and FunctionAttrs were both · e0aa0d67
      Duncan Sands authored
      doing very similar pointer capture analysis.
      Factor out the common logic.  The new version
      is from FunctionAttrs since it does a better
      job than the version in BasicAliasAnalysis
      
      llvm-svn: 62461
      e0aa0d67
  17. Jan 15, 2009
  18. Jan 14, 2009
  19. Jan 13, 2009
  20. Jan 12, 2009
  21. Jan 09, 2009
  22. Jan 07, 2009
Loading