llvm-6502/lib/Transforms/InstCombine
Jingyue Wu 529f49db93 [InstCombine] call SimplifyICmpInst with correct context
Summary:
Fixes PR23809. Without passing the context to SimplifyICmpInst, we would
use the assume to prove that the condition feeding the assume is
trivially true (see isValidAssumeForContext in ValueTracking.cpp),
causing the removal of the assume which may be useful for later
optimizations.

Test Plan: pr23800.ll

Reviewers: hfinkel, majnemer

Reviewed By: hfinkel

Subscribers: henryhu, llvm-commits, wengxt, broune, meheff, eliben

Differential Revision: http://reviews.llvm.org/D10695

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240683 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-25 20:14:47 +00:00
..
CMakeLists.txt
InstCombineAddSub.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
InstCombineAndOrXor.cpp
InstCombineCalls.cpp Reapply 239795 - [InstCombine] Propagate non-null facts to call parameters 2015-06-16 20:24:25 +00:00
InstCombineCasts.cpp
InstCombineCompares.cpp [InstCombine] call SimplifyICmpInst with correct context 2015-06-25 20:14:47 +00:00
InstCombineInternal.h
InstCombineLoadStoreAlloca.cpp
InstCombineMulDivRem.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
InstCombinePHI.cpp don't repeat function names in comments; NFC 2015-06-23 23:05:08 +00:00
InstCombineSelect.cpp [InstCombine, InstSimplify] Move xforms from Combine to Simplify 2015-06-06 22:40:21 +00:00
InstCombineShifts.cpp
InstCombineSimplifyDemanded.cpp
InstCombineVectorOps.cpp
InstructionCombining.cpp fix typo; NFC 2015-06-23 23:26:22 +00:00
LLVMBuild.txt
Makefile