[patch] Quick try at fixing pr18515

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jan 16 23:20:28 PST 2014


I got curious as to what was needed to fix pr18515 and decided to try
to patch it. This patch is under the following assumptions I got from
reading the existing code

* most ppc cpus have a "sync n" instruction and an msync alias that is "sync 0".
* "book e" cpus instead have a msync instruction and not the more
general "sync n"

What this patch does is predicate the sync instruction and its aliases
by IsNotBookE and then add a MSYNC instruction predicated on IsBookE.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140116/6acdc803/attachment.obj>


More information about the llvm-commits mailing list