llvm-project/llvm/lib/Transforms/InstCombine
Serguei Katkov d894fb4288 [InstCombine] Fix div handling
When we optimize select basing on fact that div by 0 is undef
we should not traverse the instruction which are not guaranteed to
transfer execution to next instruction. Guard intrinsic is an example.

Reviewers: spatel, craig.topper
Reviewed By: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D47576

llvm-svn: 333864
2018-06-04 02:52:36 +00:00
..
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
InstCombineAddSub.cpp [InstCombine] improve sub with bool folds 2018-06-03 16:35:26 +00:00
InstCombineAndOrXor.cpp [InstCombine] call simplify before trying vector folds 2018-06-02 16:27:44 +00:00
InstCombineCalls.cpp [InstCombine, ARM] Convert vld1 to llvm load 2018-05-31 12:19:18 +00:00
InstCombineCasts.cpp [InstCombine] don't change the size of a select if it would mismatch its condition operands' sizes 2018-05-31 00:16:58 +00:00
InstCombineCompares.cpp Fix a bunch of places where operator-> was used directly on the return from dyn_cast. 2018-05-05 01:57:00 +00:00
InstCombineInternal.h [InstCombine] call simplify before trying vector folds 2018-06-02 16:27:44 +00:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Fix PR37526: MinMax patterns produce an infinite loop. 2018-05-21 17:46:34 +00:00
InstCombineMulDivRem.cpp [InstCombine] Fix div handling 2018-06-04 02:52:36 +00:00
InstCombinePHI.cpp Add a limit for phi folding instcombine 2018-05-17 19:24:03 +00:00
InstCombineSelect.cpp [InstCombine] narrow select to match condition operands' size 2018-05-31 19:55:27 +00:00
InstCombineShifts.cpp [InstCombine] call simplify before trying vector folds 2018-06-02 16:27:44 +00:00
InstCombineSimplifyDemanded.cpp [X86] Remove and autoupgrade a bunch of FMA instrinsics that are no longer used by clang. 2018-05-11 21:59:34 +00:00
InstCombineVectorOps.cpp [InstCombine] Gracefully handle out of range extractelement indices 2017-12-27 12:00:18 +00:00
InstructionCombining.cpp [InstCombine] call simplify before trying vector folds 2018-06-02 16:27:44 +00:00
LLVMBuild.txt