[PATCH] D38102: [XRay] support conditional return on PPC.

Tim Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 14:41:21 PDT 2017


timshen created this revision.
Herald added subscribers: kbarton, hiraditya, nemanjai, sanjoy.

Conditional returns were not taken into consideration at all. Implement them by turning them into jumps and normal returns. This means there is a slightly higher performance penalty for conditional returns, but this is the best we can do, and it still disturbs little of the rest.


https://reviews.llvm.org/D38102

Files:
  llvm/lib/CodeGen/XRayInstrumentation.cpp
  llvm/lib/Target/PowerPC/PPC.h
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
  llvm/test/CodeGen/PowerPC/xray-conditional-return.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38102.116077.patch
Type: text/x-patch
Size: 16405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170920/d005276a/attachment-0001.bin>


More information about the llvm-commits mailing list