[PATCH] D48229: [NFC][SCEV] Add tests related to bit masking (PR37793)
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 15 11:35:34 PDT 2018
efriedma added a reviewer: sanjoy.
efriedma added inline comments.
================
Comment at: test/Analysis/ScalarEvolution/lshr-shl-differentconstmask.ll:44-45
+;
+ %tmp1 = lshr i32 %val, 6
+ %tmp2 = shl i32 %tmp1, 4
+ ret i32 %tmp2
----------------
lebedev.ri wrote:
> @spatel BTW, how do we want to canonicalize it? https://rise4fun.com/Alive/mxm
DAGCombine currently canonicalizes to srl+and. Unless there's a compelling reason to choose something else, that seems fine.
Repository:
rL LLVM
https://reviews.llvm.org/D48229
More information about the llvm-commits
mailing list