darkbuck

Results comments of darkbuck

revised patch is submitted at http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130304/167520.html for review extra register copies are removed in the revised patch.

Hi Cameron I don't understand the rule of "bad machine code". Why a live in register cannot be added in MBB if the generated code guarantee all BBs into it...

could you elaborate more details on this bug?

typo fix to prevent misunderstanding > I don't see it's bug but an undefined behavior. X86 has 2 different shift > behaviors, taking 32-bit integer as examples: > > *...

I don't see it's bug but an undefined behavior. X86 has 2 different shift behaviors, taking 32-bit integer as examples: * scalar shift (SAR/SHL/SRL), the shift amount will be masked...

Intuitively, (1 >> x) should be 0 if x >= 32. The only case when (1 >> x) is equal to 1 when x >= 32 is where the processor...

Only X86 (or other targets with i8 as shift amount) could do that as DAG combining knows the shift amount will be truncated into i8. Lower bits *must* be all...

*** This bug has been marked as a duplicate of bug llvm/llvm-project#14934 ***

[proposed patch](https://user-images.githubusercontent.com/127584/143747135-ffca82c1-5183-4b33-8fb7-7067ea683d62.gz) I added a patch adding lowering vector variable SRL on . It's based on the fact (i32 x) >> sh == ((i64 x) 32 so we could calculate...

[proposed patch](https://user-images.githubusercontent.com/127584/143747406-2c955cb4-31a1-4672-a48e-3a191ca0f7e8.gz) This patch fixes it.