1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/lib/Transforms/InstCombine
Quentin Colombet 091258f7a2 [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
2016-02-03 18:04:13 +00:00
..
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
InstCombineAddSub.cpp Fix Clang-tidy readability-redundant-control-flow warnings; other minor fixes. 2016-02-02 18:20:45 +00:00
InstCombineAndOrXor.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineCalls.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineCasts.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineCompares.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineInternal.h function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Revert r238452: Fold IntToPtr and PtrToInt into preceding loads. 2016-02-03 18:04:13 +00:00
InstCombineMulDivRem.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombinePHI.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineSelect.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineShifts.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineSimplifyDemanded.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstCombineVectorOps.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
InstructionCombining.cpp function names start with a lowercase letter; NFC 2016-02-01 22:23:39 +00:00
LLVMBuild.txt Update libdeps since TLI was moved from Target to Analysis in r226078. 2015-01-15 05:21:00 +00:00