[PATCH] D137422: [DAGCombine] Generalize foldSelectCCToShiftAnd

Mikhail Gudim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 4 06:51:36 PDT 2022


mgudim added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/select-to-shift-and.ll:1
+; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
+
----------------
This is a target-independent optimization, so I am not sure how to properly test it. I included this file only to demonstrate how the optimization works.

Please let me know what you think a proper place / form for this test should be.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137422/new/

https://reviews.llvm.org/D137422



More information about the llvm-commits mailing list