GlobalISel: Swap order of operand checks in ConstantFoldVectorBinop
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 18 Jan 2022 22:07:19 +0000 (17:07 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 18 Jan 2022 22:21:02 +0000 (17:21 -0500)
commit5599c43124c5ba70738494466ea3dc722759274c
tree19cbcaab047ab4033a5832697a90f81ca36f6667
parentda7282276385f82092fed4e73373bbfaf7cd8331
GlobalISel: Swap order of operand checks in ConstantFoldVectorBinop

Since constants are canonicalized to the RHS, this is more likely to
exit early.
llvm/lib/CodeGen/GlobalISel/Utils.cpp