[PATCH] D42171: X86CallFrameOptimization: Bail on win64cc calls

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 06:10:17 PST 2018


zvi created this revision.
zvi added reviewers: DavidKreitzer, MatzeB, rnk.

This transform is not legal for Win64. We already check if MF is
not win64cc, but we also need to check that no transform is applied
on a win64cc call site.
Unfortunately, there is no straightforward way to check the callee's CC,
so we resort to checking the register mask vector for equality to the
Win64-specific entry.

Fixes pr35814


Repository:
  rL LLVM

https://reviews.llvm.org/D42171

Files:
  lib/Target/X86/X86CallFrameOptimization.cpp
  test/CodeGen/X86/movtopush.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42171.130159.patch
Type: text/x-patch
Size: 4695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/fea15f00/attachment.bin>


More information about the llvm-commits mailing list