We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6556d1b commit a84bc7aCopy full SHA for a84bc7a
llvm/lib/Transforms/Scalar/GVN.cpp
@@ -156,9 +156,7 @@ struct llvm::GVNPass::Expression {
156
return false;
157
if (varargs != other.varargs)
158
159
- if (attrs.isEmpty() != other.attrs.isEmpty())
160
- return false;
161
- if (!attrs.isEmpty() &&
+ if (!attrs.isEmpty() && !other.attrs.isEmpty() &&
162
!attrs.intersectWith(type->getContext(), other.attrs).has_value())
163
164
return true;
0 commit comments