[LLVMdev] creating a vreg in eliminateFrameIndex()

Steve King steve at metrokings.com
Fri Jan 30 09:20:43 PST 2015


On Fri, Jan 30, 2015 at 8:59 AM, Hal Finkel <hfinkel at anl.gov> wrote:
>> When the scavenged register is loaded with a simple immediate, is it
>> safe to search the BB and replace other uses of the same immediate
>> with the reg?  In my case this gives a code size reduction.  The
>> search would stop on finding another use of the scavenged register.
>
> Are you asking whether that would be safe to do on all targets?

No, just a poor question -- I had in mind only my out-of-tree target.
I take the answer as "it depends on your target".



More information about the llvm-dev mailing list