[PATCH] D157972: [DAG] SimplifyDemandedBits - add sra(shl(x,c1),c1) -> sign_extend_inreg(x) demanded elts fold
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 07:41:53 PDT 2023
pengfei added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1948
+ // fold (sra (shl x, c1), c1) -> sext_inreg for some c1 and target
+ // supports sext_inreg.
----------------
Did we check the constant `c1` some where?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157972/new/
https://reviews.llvm.org/D157972
More information about the llvm-commits
mailing list