diff options
| author | Hideto Ueno <uenoku.tokotoko@gmail.com> | 2019-12-12 13:42:40 +0000 |
|---|---|---|
| committer | Hideto Ueno <uenoku.tokotoko@gmail.com> | 2019-12-12 13:42:40 +0000 |
| commit | 4ecf25545c3b34eb5a74ce920e421e59aab94905 (patch) | |
| tree | a376ddda1355dc29ba17ab1696969342832121b5 /llvm/lib | |
| parent | 827bade262ba689ffb221b3208800fc0e779aaf5 (diff) | |
| download | bcm5719-llvm-4ecf25545c3b34eb5a74ce920e421e59aab94905.tar.gz bcm5719-llvm-4ecf25545c3b34eb5a74ce920e421e59aab94905.zip | |
[Attributor][NFC] Fix comments and unnecessary comma
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index f43c02c4495..305cc289823 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -1564,7 +1564,7 @@ struct AANoFreeFloating : AANoFreeImpl { isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { Follow = true; return true; - }; + } // Unknown user. return false; @@ -3254,7 +3254,8 @@ struct AAAlignImpl : AAAlign { bool followUse(Attributor &A, const Use *U, const Instruction *I) { bool TrackUse = false; - unsigned int KnownAlign = getKnownAlignForUse(A, *this, getAssociatedValue(), U, I, TrackUse); + unsigned int KnownAlign = + getKnownAlignForUse(A, *this, getAssociatedValue(), U, I, TrackUse); takeKnownMaximum(KnownAlign); return TrackUse; @@ -3950,14 +3951,14 @@ struct AAValueSimplifyArgument final : AAValueSimplifyImpl { // callback calls). Value *ArgOp = ACS.getCallArgOperand(getArgNo()); if (!ArgOp) - return false; + return false; // We can only propagate thread independent values through callbacks. // This is different to direct/indirect call sites because for them we // know the thread executing the caller and callee is the same. For // callbacks this is not guaranteed, thus a thread dependent value could // be different for the caller and callee, making it invalid to propagate. if (ACS.isCallbackCall()) - if (auto *C =dyn_cast<Constant>(ArgOp)) + if (auto *C = dyn_cast<Constant>(ArgOp)) if (C->isThreadDependent()) return false; return checkAndUpdate(A, *this, *ArgOp, SimplifiedAssociatedValue); @@ -5558,8 +5559,8 @@ void Attributor::identifyDefaultAbstractAttributes(Function &F) { // Call site argument attribute "align". getOrCreateAAFor<AAAlign>(CSArgPos); - // Call site argument attribute "nofree". - getOrCreateAAFor<AANoFree>(CSArgPos); + // Call site argument attribute "nofree". + getOrCreateAAFor<AANoFree>(CSArgPos); } } return true; |

