mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 10:46:08 +00:00

getTargetConstant prevents any optimizations from operating on the value and basically says its already been iseled. But since we want the index to be in a register, this isn't true. Prior to this we were generating a vbroadcast with an immediate argument which is illegal and was flagged by the expensive checks bot.