HomePhabricator

[BPI] Look through bitcasts in calcZeroHeuristic

Authored by weiwang on Nov 13 2020, 11:17 AM.

Description

[BPI] Look through bitcasts in calcZeroHeuristic

Constant hoisting may hide the constant value behind bitcast for And's
operand. Track down the constant to make the BFI result consistent
regardless of hoisting.

Differential Revision: https://reviews.llvm.org/D91450

Details