[ShrinkWrapping] Disable the optimization for functions with sanitize like
authorQuentin Colombet <qcolombet@apple.com>
Sat, 14 Nov 2015 01:55:17 +0000 (01:55 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Sat, 14 Nov 2015 01:55:17 +0000 (01:55 +0000)
commit8d807025374d8a1eac8fc148fe746aff4075ead2
tree1b710c21586a05cd9ec27f3786f9a02da95679e5
parentcbf7d4abb0c752809e8ff6c32fdeb1dcaee62c2b
[ShrinkWrapping] Disable the optimization for functions with sanitize like
attribute.

Even if the target supports shrink-wrapping, the prologue and epilogue
must not move because a crash can happen anywhere and sanitizers need
to be able to unwind from the PC of the crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253116 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ShrinkWrap.cpp
test/CodeGen/X86/x86-sanitizer-shrink-wrapping.ll [new file with mode: 0644]