[PATCH] D25293: Create llvm.addressofreturnaddress intrinsic

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 16:17:16 PDT 2016


majnemer added a comment.

Cool :)



> addr-of-ret-addr.ll:1-2
> +; RUN: llc < %s -disable-fp-elim -march=x86 | not grep xor
> +; RUN: llc < %s -disable-fp-elim -march=x86-64 | not grep xor
> +

Might be better to use FileCheck.

> win64_frame.ll:187
>  
> +define i8* @f11() "no-frame-pointer-elim"="true" {
> +  ; CHECK-LABEL: f11:

What happens if the frame pointer is eliminated? The return address should just be at %([re]sp) no?

https://reviews.llvm.org/D25293





More information about the llvm-commits mailing list