[llvm] r177431 - Add missing mayLoad flag to LHAUX8 and LWAUX.
Ulrich Weigand
ulrich.weigand at de.ibm.com
Tue Mar 19 12:53:27 PDT 2013
Author: uweigand
Date: Tue Mar 19 14:53:27 2013
New Revision: 177431
URL: http://llvm.org/viewvc/llvm-project?rev=177431&view=rev
Log:
Add missing mayLoad flag to LHAUX8 and LWAUX.
All pre-increment load patterns need to set the mayLoad flag (since
they don't provide a DAG pattern).
This was missing for LHAUX8 and LWAUX, which is added by this patch.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td?rev=177431&r1=177430&r2=177431&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td Tue Mar 19 14:53:27 2013
@@ -578,7 +578,7 @@ def LWAX : XForm_1<31, 341, (outs G8RC:$
PPC970_DGroup_Cracked;
// Update forms.
-let mayLoad = 1 in
+let mayLoad = 1 in {
def LHAU8 : DForm_1<43, (outs G8RC:$rD, ptr_rc_nor0:$ea_result),
(ins memri:$addr),
"lhau $rD, $addr", LdStLHAU,
@@ -597,6 +597,7 @@ def LWAUX : XForm_1<31, 373, (outs G8RC:
[]>, RegConstraint<"$addr.offreg = $ea_result">,
NoEncode<"$ea_result">, isPPC64;
}
+}
// Zero extending loads.
let canFoldAsLoad = 1, PPC970_Unit = 2 in {
More information about the llvm-commits
mailing list