[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-commits
Subject:    [PATCH] D110751: [DomTree] Assert that blocks in queries aren't from another function
From:       Daniil Suchkov via Phabricator via llvm-commits <llvm-commits () lists ! llvm ! org>
Date:       2021-09-30 22:12:59
Message-ID: 36MtyTU3T0mEuql_nCptlw () ismtpd0149p1iad2 ! sendgrid ! net
[Download RAW message or body]

DaniilSuchkov added inline comments.


================
Comment at: llvm/include/llvm/Support/GenericDomTree.h:353
+    assert((!BB || !BB->getParent() || BB->getParent() == Parent) &&
+           "A node from another function!");
+
----------------
aeubanks wrote:
> DaniilSuchkov wrote:
> > nikic wrote:
> > > Is `!BB` really a valid input to this function?
> > I don't know, but since there are no checks for that anywhere and it's not \
> > mentioned in its description, I decided refrain from making any assumptions. If \
> > you think it's not, I can add an assertion for that in a separate patch.
> I'd just remove the check for `!BB` if check-llvm doesn't complain
`make check` quickly reminded me that `!BB ||` wasn't accidental at all:
```
  Skipped          :    36
  Unsupported      : 19985
  Passed           : 19299
  Expectedly Failed:    58
  Failed           :  6325
```
That's almost 1/3 of all tests.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110751/new/

https://reviews.llvm.org/D110751

_______________________________________________
llvm-commits mailing list
llvm-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic