1. Apr 03, 2019
  2. Apr 02, 2019
    • Shoaib Meenai's avatar
      [llvm-shlib] Fix cross-compilation for LLVM-C · 7c16c5b6
      Shoaib Meenai authored
      When we're cross-compiling, build and use a native llvm-nm instead of
      attempting to use the one from the target's build tree.
      
      A nice follow-up would be to add a cache variable to allow specifying a
      path to an external native llvm-nm instead of building one ourselves,
      similar to LLVM_TABLEGEN and LLVM_CONFIG_PATH.
      
      Differential Revision: https://reviews.llvm.org/D60025
      
      llvm-svn: 357487
      7c16c5b6
    • Shoaib Meenai's avatar
      [cmake] Add function for building native tool · f92acf12
      Shoaib Meenai authored
      Instead of duplicating functionality for building native versions of
      tblgen and llvm-config, add a function to set up a native tool build.
      This will also be used for llvm-nm in a follow-up.
      
      This should be NFC for tblgen, besides the slightly different COMMENT
      for the custom command (it'll display the tablegen target name instead
      of always saying TableGen).  For the native llvm-config, it's a behavior
      change in that we'll use llvm_ExternalProject_BuildCmd instead of
      constructing the build command manually, always build in Release, and
      reference the correct binary path for multi-config generators. I believe
      all of these changes to be bug fixes.
      
      Differential Revision: https://reviews.llvm.org/D60024
      
      llvm-svn: 357486
      f92acf12
    • Joseph Tremoulet's avatar
      [SimplifyCFG] Don't split musttail call from ret · fb4d9f72
      Joseph Tremoulet authored
      Summary:
      When inserting an `unreachable` after a noreturn call, we must ensure
      that it's not a musttail call to avoid breaking the IR invariants for
      musttail calls.
      
      Reviewers: fedor.sergeev, majnemer
      
      Reviewed By: majnemer
      
      Subscribers: hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D60080
      
      llvm-svn: 357485
      fb4d9f72
    • Taewook Oh's avatar
      [SampleProfile] Repeat indirect call promotion only when the target is actually hot. · 6a27c48b
      Taewook Oh authored
      Summary: It is possible that multiple indirect call targets have been promoted for a single callsite from the profiled binary. Current implementation repeats promotion for all these targets as far as the callsite itself is hot (the callsite is assumed to be hot if any one of these targets was "hot" during the profiling). However, even when one of the ICPed target is hot other targets may not, and we should not repeat promotion for "cold" targets.
      
      Reviewers: danielcdh, wmi
      
      Subscribers: hiraditya, jdoerfert, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D59940
      
      llvm-svn: 357484
      6a27c48b