diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-02 15:28:27 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-02 15:28:27 +0000 |
commit | db220dbf023b5c8573d7da2e951cf53a5e71cef7 (patch) | |
tree | 80782dc5fb90584b02edef93e889eff25fc2001a /llvm/lib/Target | |
parent | 6f031d848efb9dba1865a3884286ce660845a255 (diff) | |
download | bcm5719-llvm-db220dbf023b5c8573d7da2e951cf53a5e71cef7.tar.gz bcm5719-llvm-db220dbf023b5c8573d7da2e951cf53a5e71cef7.zip |
Push constness through LoopInfo::isLoopHeader and clean it up a bit.
NFC.
llvm-svn: 238843
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp index 864a5f63f7e..2d57e6485ee 100644 --- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp +++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp @@ -418,9 +418,8 @@ void NVPTXAsmPrinter::printReturnValStr(const MachineFunction &MF, bool NVPTXAsmPrinter::isLoopHeaderOfNoUnroll( const MachineBasicBlock &MBB) const { MachineLoopInfo &LI = getAnalysis<MachineLoopInfo>(); - // TODO: isLoopHeader() should take "const MachineBasicBlock *". // We insert .pragma "nounroll" only to the loop header. - if (!LI.isLoopHeader(const_cast<MachineBasicBlock *>(&MBB))) + if (!LI.isLoopHeader(&MBB)) return false; // llvm.loop.unroll.disable is marked on the back edges of a loop. Therefore, |