llvm-project/llvm/lib/Transforms/InstCombine
Weiming Zhao 984f1dc338 Fix DebugLoc propagation for unreachable LoadInst
Summary: Currently, when GVN creates a load and when InstCombine creates a new store for unreachable Load, the DebugLoc info gets lost.

Reviewers: dberlin, davide, aprantl

Reviewed By: aprantl

Subscribers: davide, llvm-commits

Differential Revision: https://reviews.llvm.org/D34639

llvm-svn: 308404
2017-07-19 01:27:24 +00:00
..
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
InstCombineAddSub.cpp [IR] Add Type::isIntOrIntVectorTy(unsigned) similar to the existing isIntegerTy(unsigned), but also works for vectors. 2017-07-09 07:04:03 +00:00
InstCombineAndOrXor.cpp [InstCombine] Move (0 - x) & 1 --> x & 1 to SimplifyDemandedUseBits. 2017-07-16 05:37:58 +00:00
InstCombineCalls.cpp fix typos in comments; NFC 2017-07-11 06:04:59 +00:00
InstCombineCasts.cpp [IR] Make use of Type::isPtrOrPtrVectorTy/isIntOrIntVectorTy/isFPOrFPVectorTy to shorten code. NFC 2017-07-09 07:04:00 +00:00
InstCombineCompares.cpp [InstCombine] Don't violate dominance when replacing instructions. 2017-07-16 18:56:30 +00:00
InstCombineInternal.h [InstCombine] Make InstCombine's IRBuilder be passed by reference everywhere 2017-07-07 23:16:26 +00:00
InstCombineLoadStoreAlloca.cpp Fix DebugLoc propagation for unreachable LoadInst 2017-07-19 01:27:24 +00:00
InstCombineMulDivRem.cpp [IR] Add Type::isIntOrIntVectorTy(unsigned) similar to the existing isIntegerTy(unsigned), but also works for vectors. 2017-07-09 07:04:03 +00:00
InstCombinePHI.cpp fix typos in comments; NFC 2017-07-11 06:04:59 +00:00
InstCombineSelect.cpp [IR] Add Type::isIntOrIntVectorTy(unsigned) similar to the existing isIntegerTy(unsigned), but also works for vectors. 2017-07-09 07:04:03 +00:00
InstCombineShifts.cpp [InstCombine] Make InstCombine's IRBuilder be passed by reference everywhere 2017-07-07 23:16:26 +00:00
InstCombineSimplifyDemanded.cpp [InstCombine] Move (0 - x) & 1 --> x & 1 to SimplifyDemandedUseBits. 2017-07-16 05:37:58 +00:00
InstCombineVectorOps.cpp [InstCombine] Make InstCombine's IRBuilder be passed by reference everywhere 2017-07-07 23:16:26 +00:00
InstructionCombining.cpp [InstCombine] Improve the expansion in SimplifyUsingDistributiveLaws to handle cases where one side doesn't simplify, but the other side resolves to an identity value 2017-07-15 21:49:49 +00:00
LLVMBuild.txt