[PATCH] D99427: [LoopIdiomRecognize] Teach CTLZ/CTTZ idiom recognition to handle not being able to find a pre-loop check for the input being 0.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 29 09:32:56 PDT 2021
craig.topper planned changes to this revision.
craig.topper added inline comments.
================
Comment at: llvm/test/Transforms/LoopIdiom/X86/ctlz.ll:294
+; ALL: while.body:
+; ALL-NEXT: [[TCPHI:%.*]] = phi i32 [ [[TMP1]], [[WHILE_BODY_PREHEADER]] ], [ [[TCDEC:%.*]], [[WHILE_BODY]] ]
+; ALL-NEXT: [[I_06:%.*]] = phi i32 [ [[INC:%.*]], [[WHILE_BODY]] ], [ 0, [[WHILE_BODY_PREHEADER]] ]
----------------
I think this needs to be TMP3 not TMP1.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99427/new/
https://reviews.llvm.org/D99427
More information about the llvm-commits
mailing list