[PATCH] D87464: [TargetLowering] Improve SimplifyDemandedBits for AND and OR
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 13:56:49 PDT 2020
craig.topper added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1271
+ // known bits in Op0, try simplifying Op1 again.
+ APInt Op1DemandedBits = ~Known2.One & DemandedBits;
+ if (Op1DemandedBits != DemandedBits &&
----------------
Can we trust Known2.One's value is correct for the bits that weren't checked due to Known.One being used to filter the DemandedBits for the previous call?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87464/new/
https://reviews.llvm.org/D87464
More information about the llvm-commits
mailing list