[llvm-commits] LoadSDNode invariance
Peter Cooper
peter_cooper at apple.com
Fri Nov 4 11:56:18 PDT 2011
Hi
I've added new metadata to load IR instructions to say if they are invariant, i.e., don't change at runtime.
The IR change was simple but i'm not sure about the MachineInstr/DAG level. I've attached the change which encodes the invariant flag in the MemSDNodeFlags next to the volatile flag.
Please have a look and tell me if this is ideal? The main thing i wasn't happy doing was adding another DAG.getLoad method with the invariant flag, but the alternative was changing the existing method which would lead to changing dozens of calls.
Thanks,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.patch
Type: application/octet-stream
Size: 15617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111104/e81ae7df/attachment.obj>
More information about the llvm-commits
mailing list