diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-02-03 18:04:13 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-02-03 18:04:13 +0000 |
commit | 7ec03dc7f80e73dc60960fe163e20bf3da19c969 (patch) | |
tree | a7f038b399101f9c923d6207ae50377a2bf23984 /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp | |
parent | ac29f01788e381b2a8560536997d44dfee87086d (diff) | |
download | bcm5719-llvm-7ec03dc7f80e73dc60960fe163e20bf3da19c969.tar.gz bcm5719-llvm-7ec03dc7f80e73dc60960fe163e20bf3da19c969.zip |
[InstCombine] Revert r238452: Fold IntToPtr and PtrToInt into preceding loads.
According to git bisect, this is the root cause of a miscompile for Regex in
libLLVMSupport. I am still working on reducing a test case.
The actual bug may be elsewhere and this commit just exposed it.
Anyway, at the moment, to reproduce, follow these steps:
1. Build clang and libLTO in release mode.
2. Create a new build directory <stage2> and cd into it.
3. Use clang and libLTO from #1 to build llvm-extract in Release mode + asserts
using -O2 -flto
4. Run llvm-extract -ralias '.*bar' -S test/Other/extract-alias.ll
Result:
program doesn't contain global named '.*bar'!
Expected result:
@a0a0bar = alias void ()* @bar
@a0bar = alias void ()* @bar
declare void @bar()
Note: In step #3, if you don't use lto or asserts, the miscompile disappears.
llvm-svn: 259674
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions