Freeze the condition of the newly introduced conditional branch, to avoid immediate undefined behavior if the input to ctlz/cttz was originally poison.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM - is it worth adding a CodeGen equivalent test to show that doesn't change (assuming there is no change)?
Comment Actions
It looks like we already have a couple of CodeGen tests for this, e.g. llvm/test/CodeGen/X86/clz.ll.
nit: while you are here, llvm:: could be dropped.