[LLVMdev] [RFC] Remat Enhancements
David A. Greene
dag at cray.com
Mon Feb 27 10:25:17 PST 2012
Jakob Stoklund Olesen <stoklund at 2pi.dk> writes:
>> This is important because if mayLoad includes arithmetic instructions
>> with source memops (which I assume it will), it is unsuitable for remat
>> analysis. I don't think we want to remat general arithmetic quite yet.
>> At least that's not the intent of my change. I'll need some way to
>> identify "real" loads and I don't know of any other way other than
>> listing opcodes. Ideas?
> The target sets the isRematerializable bit on opcodes that are
> suitable for remat. That should be sufficient.
Ok, that should work.
> You should also check the 'canFoldAsLoad' mechanism.
Will do. Thanks for the pointers!
More information about the llvm-dev