-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llvm: backport "[SimplifyCFG] Hoisting invalidates metadata". #36117
Conversation
💡 This pull request was already approved, no need to approve it again.
|
llvm: backport "[SimplifyCFG] Hoisting invalidates metadata". Fixes #36023 by backporting @majnemer's LLVM patch fixing [the LLVM bug](https://llvm.org/bugs/show_bug.cgi?id=29163.) where SimplifyCFG hoisted instructions andkept their metadata (conditional `!nonnull` loads could kill a null check later if hoisted). r? @alexcrichton
@@ -0,0 +1,32 @@ | |||
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails on Travis CI. Any ideas why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis doesn't use the patched LLVM, so the test can't pass on it. See #36138.
Accepting for backport. |
Fixes #36023 by backporting @majnemer's LLVM patch fixing the LLVM bug where SimplifyCFG hoisted instructions andkept their metadata (conditional
!nonnull
loads could kill a null check later if hoisted).r? @alexcrichton