[PATCH] D122070: [SDAG] enable binop identity constant folds for shifts
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 19 08:29:35 PDT 2022
pengfei added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2167
+ case ISD::SRA: // X s>> 0 --> X
+ case ISD::SRL: // X u>> 0 --> X
return C->isZero();
----------------
Can it apply to ROTL/ROTR ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122070/new/
https://reviews.llvm.org/D122070
More information about the llvm-commits
mailing list