1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/lib/IR
Roman Lebedev 81b4ae1832 [IR] Value: add replaceUsesWithIf() utility
Summary:
While there is always a `Value::replaceAllUsesWith()`,
sometimes the replacement needs to be conditional.

I have only cleaned a few cases where `replaceUsesWithIf()`
could be used, to both add test coverage,
and show that it is actually useful.

Reviewers: jdoerfert, spatel, RKSimon, craig.topper

Reviewed By: jdoerfert

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, aheejin, george.burgess.iv, asbirlea, llvm-commits

Tags: #llvm

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

llvm-svn: 367548
2019-08-01 12:32:08 +00:00
..
AbstractCallSite.cpp
AsmWriter.cpp
AttributeImpl.h Extend function attributes bitset size from 64 to 96. 2019-07-13 00:29:03 +00:00
Attributes.cpp ARM MTE stack sanitizer. 2019-07-15 20:02:23 +00:00
AttributesCompatFunc.td
AutoUpgrade.cpp Allow prefetching from non-zero address spaces 2019-07-25 16:11:57 +00:00
BasicBlock.cpp
CMakeLists.txt
Comdat.cpp
ConstantFold.cpp
ConstantFold.h
ConstantRange.cpp
Constants.cpp Fix typo in r366494. Spotted by Yuanfang Chen. 2019-07-18 21:03:37 +00:00
ConstantsContext.h
Core.cpp
DataLayout.cpp
DebugInfo.cpp
DebugInfoMetadata.cpp Reland "[DwarfDebug] Dump call site debug info" 2019-07-31 16:51:28 +00:00
DebugLoc.cpp
DiagnosticHandler.cpp
DiagnosticInfo.cpp
DiagnosticPrinter.cpp
DIBuilder.cpp
Dominators.cpp
Function.cpp
Globals.cpp IR: Teach GlobalIndirectSymbol::getBaseObject() to handle more kinds of expressions. 2019-07-24 22:23:05 +00:00
GVMaterializer.cpp
InlineAsm.cpp
Instruction.cpp
Instructions.cpp
IntrinsicInst.cpp
IRBuilder.cpp
IRPrintingPasses.cpp
LegacyPassManager.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
LLVMBuild.txt
LLVMContext.cpp [IR] Consolidate fixed metadata kind definitions (NFC) 2019-07-29 20:24:20 +00:00
LLVMContextImpl.cpp
LLVMContextImpl.h
Mangler.cpp
MDBuilder.cpp
Metadata.cpp
MetadataImpl.h
Module.cpp
ModuleSummaryIndex.cpp
Operator.cpp
OptBisect.cpp
Pass.cpp
PassInstrumentation.cpp
PassManager.cpp
PassRegistry.cpp
PassTimingInfo.cpp
ProfileSummary.cpp
RemarkStreamer.cpp Reland: [Remarks] Add an LLVM-bitstream-based remark serializer 2019-07-31 00:13:51 +00:00
SafepointIRVerifier.cpp
Statepoint.cpp
SymbolTableListTraitsImpl.h
Type.cpp
TypeFinder.cpp
Use.cpp
User.cpp
Value.cpp [IR] Value: add replaceUsesWithIf() utility 2019-08-01 12:32:08 +00:00
ValueSymbolTable.cpp
Verifier.cpp [IR][Verifier] Allow IntToPtrInst to be !dereferenceable 2019-07-23 17:19:56 +00:00