[LLVMdev] EVT::isRound on non-8-bit byte targets

Sam Cristall cristall at eleveneng.com
Tue Jul 9 08:01:15 PDT 2013


I'm new to LLVM dev, but I have been working with a target with a
minimum addressable byte of 16-bits.  I found that in
DAGCombiner::visitAND, EVT::isRound could create i8 loads on my 16-bit
target which are ultimately invalid.  EVT::isRound appears to use a
hard-coded 8, rather than pulling the targets BitsPerByte field.  Is this
a potential bug or is there a better way to address this?  Hard coding a
16 in the isRound field fixes the issue for me.

Cheers,
Sam



More information about the llvm-dev mailing list