1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 22:42:46 +02:00
llvm-mirror/lib
David Majnemer ec576cc6dc InstCombine: Fix a potential bug in 0 - (X sdiv C) -> (X sdiv -C)
While *most* (X sdiv 1) operations will get caught by InstSimplify, it
is still possible for a sdiv to appear in the worklist which hasn't been
simplified yet.

This means that it is possible for 0 - (X sdiv 1) to get transformed
into (X sdiv -1); dividing by -1 can make the transform produce undef
values instead of the proper result.

Sorry for the lack of testcase, it's a bit problematic because it relies
on the exact order of operations in the worklist.

llvm-svn: 215818
2014-08-16 09:23:42 +00:00
..
Analysis In LVI(Lazy Value Info), originally value on a BB can only be caculated once, 2014-08-11 05:02:04 +00:00
AsmParser Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Bitcode BitcodeReader: Only create one basic block for each blockaddress 2014-08-16 01:54:37 +00:00
CodeGen [DAGCombiner] Improve the folding of target independet shuffles to Undef. 2014-08-16 00:29:44 +00:00
DebugInfo Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
ExecutionEngine [MCJIT] Support DisableSymbolSearching and InstallLazyFunctionCreator in MCJIT. 2014-08-14 02:38:20 +00:00
IR InstCombine: Fix a potential bug in 0 - (X sdiv C) -> (X sdiv -C) 2014-08-16 09:23:42 +00:00
IRReader Update the MemoryBuffer API to use ErrorOr. 2014-07-06 17:43:13 +00:00
LineEditor
Linker Set comdats when lazily linking functions. 2014-08-15 20:17:08 +00:00
LTO Don't internalize all but main by default. 2014-08-05 20:10:38 +00:00
MC Make EmitAbsValue an static helper. 2014-08-15 15:12:13 +00:00
Object Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Option [Option] Support MultiArg in --help 2014-08-15 21:35:07 +00:00
ProfileData Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Support Revert "[Support] Promote cl::StringSaver to a separate utility" 2014-08-15 23:39:01 +00:00
TableGen Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
Target arm asm: Let .fpu enable instructions, PR20447. 2014-08-16 05:37:51 +00:00
Transforms InstCombine: Fix a potential bug in 0 - (X sdiv C) -> (X sdiv -C) 2014-08-16 09:23:42 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile