[all-commits] [llvm/llvm-project] 4f568f: [PowerPC] Do not emit HW loop when TLS var accesse...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Mon Dec 28 18:41:44 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f568fbd21636c7c8d071f1901084cc0ae87f3ee
      https://github.com/llvm/llvm-project/commit/4f568fbd21636c7c8d071f1901084cc0ae87f3ee
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-12-28 (Mon, 28 Dec 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
    A llvm/test/CodeGen/PowerPC/pr48527.ll

  Log Message:
  -----------
  [PowerPC] Do not emit HW loop when TLS var accessed in PHI of loop exit

If any PHI nodes in loop exit blocks have incoming values from the
loop that are accesses of TLS variables with local dynamic or general
dynamic TLS model, the address will be computed inside the loop. Since
this includes a call to __tls_get_addr, this will in turn cause the
CTR loops verifier to complain.
Disable CTR loops in such cases.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=48527




More information about the All-commits mailing list