[llvm-commits] [llvm] r98164 - /llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp
Richard Osborne
richard at xmos.com
Wed Mar 10 09:16:29 PST 2010
Author: friedgold
Date: Wed Mar 10 11:16:29 2010
New Revision: 98164
URL: http://llvm.org/viewvc/llvm-project?rev=98164&view=rev
Log:
Fix checking of intermediates having one use in isADDADDMUL
Modified:
llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp
Modified: llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp?rev=98164&r1=98163&r2=98164&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreISelLowering.cpp Wed Mar 10 11:16:29 2010
@@ -607,10 +607,11 @@
} else {
return false;
}
+ if (requireIntermediatesHaveOneUse && !AddOp.hasOneUse())
+ return false;
if (OtherOp.getOpcode() == ISD::MUL) {
// add(add(a,b),mul(x,y))
- if (requireIntermediatesHaveOneUse &&
- (!OtherOp.hasOneUse() || !AddOp.hasOneUse()))
+ if (requireIntermediatesHaveOneUse && !OtherOp.hasOneUse())
return false;
Mul0 = OtherOp.getOperand(0);
Mul1 = OtherOp.getOperand(1);
More information about the llvm-commits
mailing list