mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 22:38:56 +00:00
80 col / tabs fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9bdb00683
commit
a72acf9389
@ -66,7 +66,8 @@ namespace {
|
|||||||
|
|
||||||
virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
|
virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
|
||||||
static char ID; // Pass identification, replacement for typeid
|
static char ID; // Pass identification, replacement for typeid
|
||||||
ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID), maxElements(maxElements) {}
|
ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID),
|
||||||
|
maxElements(maxElements) {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool PromoteArguments(CallGraphNode *CGN);
|
bool PromoteArguments(CallGraphNode *CGN);
|
||||||
|
@ -327,8 +327,8 @@ bool DSE::handleEndBlock(BasicBlock& BB,
|
|||||||
|
|
||||||
// If we encounter a use of the pointer, it is no longer considered dead
|
// If we encounter a use of the pointer, it is no longer considered dead
|
||||||
if (LoadInst* L = dyn_cast<LoadInst>(BBI)) {
|
if (LoadInst* L = dyn_cast<LoadInst>(BBI)) {
|
||||||
// However, if this load is unused and not volatile, we can go ahead and remove it,
|
// However, if this load is unused and not volatile, we can go ahead and
|
||||||
// and not have to worry about it making our pointer undead!
|
// remove it, and not have to worry about it making our pointer undead!
|
||||||
if (L->use_empty() && !L->isVolatile()) {
|
if (L->use_empty() && !L->isVolatile()) {
|
||||||
MD.removeInstruction(L);
|
MD.removeInstruction(L);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user