mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Cosmetic cleanups - NFC
Remove commented lines, trailing whitespace, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8eb1aaac9c
commit
e933e5bd08
@ -137,13 +137,10 @@ bool NVPTXLowerAggrCopies::runOnFunction(Function &F) {
|
|||||||
//
|
//
|
||||||
// Collect all the aggrLoads, aggrMemcpys and addrMemsets.
|
// Collect all the aggrLoads, aggrMemcpys and addrMemsets.
|
||||||
//
|
//
|
||||||
//const BasicBlock *firstBB = &F.front(); // first BB in F
|
|
||||||
for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI) {
|
for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI) {
|
||||||
//BasicBlock *bb = BI;
|
|
||||||
for (BasicBlock::iterator II = BI->begin(), IE = BI->end(); II != IE;
|
for (BasicBlock::iterator II = BI->begin(), IE = BI->end(); II != IE;
|
||||||
++II) {
|
++II) {
|
||||||
if (LoadInst *load = dyn_cast<LoadInst>(II)) {
|
if (LoadInst *load = dyn_cast<LoadInst>(II)) {
|
||||||
|
|
||||||
if (!load->hasOneUse())
|
if (!load->hasOneUse())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -152,7 +149,7 @@ bool NVPTXLowerAggrCopies::runOnFunction(Function &F) {
|
|||||||
|
|
||||||
User *use = load->user_back();
|
User *use = load->user_back();
|
||||||
if (StoreInst *store = dyn_cast<StoreInst>(use)) {
|
if (StoreInst *store = dyn_cast<StoreInst>(use)) {
|
||||||
if (store->getOperand(0) != load) //getValueOperand
|
if (store->getOperand(0) != load)
|
||||||
continue;
|
continue;
|
||||||
aggrLoads.push_back(load);
|
aggrLoads.push_back(load);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
// This file is distributed under the University of Illinois Open Source
|
// This file is distributed under the University of Illinois Open Source
|
||||||
// License. See LICENSE.TXT for details.
|
// License. See LICENSE.TXT for details.
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
@ -115,7 +115,7 @@ bool NVPTXReplaceImageHandles::processInstr(MachineInstr &MI) {
|
|||||||
|
|
||||||
replaceImageHandle(Handle, MF);
|
replaceImageHandle(Handle, MF);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user