[IR][GVN] add/allow commutative intrinsics with >2 args
authorSanjay Patel <spatel@rotateright.com>
Thu, 3 Sep 2020 14:12:59 +0000 (10:12 -0400)
committerSanjay Patel <spatel@rotateright.com>
Thu, 3 Sep 2020 14:14:53 +0000 (10:14 -0400)
commitbdd5bfd0e434637c44916fe2072b1d80fa022092
tree75381f034cadc70c58a7066b74b2000364a101e3
parent4013cfd34df363dfd8d963375d72349c5da2623c
[IR][GVN] add/allow commutative intrinsics with >2 args

Follow-up to D86798 and rGe25449f.
llvm/include/llvm/IR/IntrinsicInst.h
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/test/Transforms/GVN/commute.ll