[all-commits] [llvm/llvm-project] a7115d: [X86] X86CallFrameOptimization - generalize slow p...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Mar 29 03:03:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a7115d51be09ebc8953a269d26bda3d0c50dbab2
      https://github.com/llvm/llvm-project/commit/a7115d51be09ebc8953a269d26bda3d0c50dbab2
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-29 (Sun, 29 Mar 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86CallFrameOptimization.cpp
    M llvm/test/CodeGen/X86/atomic-idempotent.ll

  Log Message:
  -----------
  [X86] X86CallFrameOptimization - generalize slow push code path

Replace the explicit isAtom() || isSLM() test with the more general (and more specific) slowTwoMemOps() check to avoid the use of the PUSHrmm push from memory case.

This is actually very tricky to test in anything but quite complex code, but the atomic-idempotent.ll tests seem to be the most straightforward to use.

Differential Revision: https://reviews.llvm.org/D76239




More information about the All-commits mailing list