diff options
author | Simon Moll <moll@cs.uni-saarland.de> | 2022-06-09 16:09:14 +0200 |
---|---|---|
committer | Simon Moll <moll@cs.uni-saarland.de> | 2022-06-09 16:10:08 +0200 |
commit | b8c2781ff60126b8c7c11ed0dab90d0640a17d4f (patch) | |
tree | 84cfa85c4bdb67667a970d5215bf33215f92faf9 /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | 7dbfcfa735f28a3bd33b465c686a20c4974373ae (diff) | |
download | llvm-b8c2781ff60126b8c7c11ed0dab90d0640a17d4f.zip llvm-b8c2781ff60126b8c7c11ed0dab90d0640a17d4f.tar.gz llvm-b8c2781ff60126b8c7c11ed0dab90d0640a17d4f.tar.bz2 |
[NFC] format InstructionSimplify & lowerCaseFunctionNames
Clang-format InstructionSimplify and convert all "FunctionName"s to
"functionName". This patch does touch a lot of files but gets done with
the cleanup of InstructionSimplify in one commit.
This is the alternative to the less invasive clang-format only patch: D126783
Reviewed By: spatel, rengolin
Differential Revision: https://reviews.llvm.org/D126889
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index 91b28d9..8f053cd5 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -485,7 +485,7 @@ void PruningFunctionCloner::CloneBlock( // a mapping to that value rather than inserting a new instruction into // the basic block. if (Value *V = - SimplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { + simplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { // On the off-chance that this simplifies to an instruction in the old // function, map it back into the new function. if (NewFunc != OldFunc) @@ -768,7 +768,7 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, continue; // See if this instruction simplifies. - Value *SimpleV = SimplifyInstruction(I, DL); + Value *SimpleV = simplifyInstruction(I, DL); if (!SimpleV) continue; |