1. Feb 19, 2020
  2. Feb 18, 2020
    • Andrew Wei's avatar
      [RISCV] Implement mayBeEmittedAsTailCall for tail call optimization · 4ca753f4
      Andrew Wei authored
      Implement TargetLowering callback mayBeEmittedAsTailCall for riscv in CodeGenPrepare,
      which will duplicate return instructions to enable tailcall optimization.
      
      Differential Revision: https://reviews.llvm.org/D73699
      4ca753f4
    • Sander de Smalen's avatar
      Add OffsetIsScalable to getMemOperandWithOffset · 8fbc9258
      Sander de Smalen authored
      Summary:
      Making `Scale` a `TypeSize` in AArch64InstrInfo::getMemOpInfo,
      has the effect that all places where this information is used
      (notably, TargetInstrInfo::getMemOperandWithOffset) will need
      to consider Scale - and derived, Offset - possibly being scalable.
      
      This patch adds a new operand `bool &OffsetIsScalable` to
      TargetInstrInfo::getMemOperandWithOffset and fixes up all
      the places where this function is used, to consider the
      offset possibly being scalable.
      
      In most cases, this means bailing out because the algorithm does not
      (or cannot) support scalable offsets in places where it does some
      form of alias checking for example.
      
      Reviewers: rovka, efriedma, kristof.beyls
      
      Reviewed By: efriedma
      
      Subscribers: wuzish, kerbowa, MatzeB, arsenm, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, javed.absar, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, Jim, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D72758
      8fbc9258