[DAG] Remove non-canonical AVG case.
authorDavid Green <david.green@arm.com>
Mon, 6 Feb 2023 17:24:25 +0000 (17:24 +0000)
committerDavid Green <david.green@arm.com>
Mon, 6 Feb 2023 17:24:25 +0000 (17:24 +0000)
commitfd67e9545da4cd2c1cc5ed54804afcab6ddc6258
tree7559c53eb3d71c7ce72b3201fdc253d20dcc908e
parentb76f40c12f46b6ae992540632cb7295446087aca
[DAG] Remove non-canonical AVG case.

This removes a condition in the detection of AVG nodes, where we needn't be
checking the LHS of an add node as any const will be canonicalized to the RHS.
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp