[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
Jim Laskey
jlaskey at apple.com
Fri Aug 12 16:52:58 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelPattern.cpp updated: 1.136 -> 1.137
---
Log message:
Fix for 2005-08-12-rlwimi-crash.ll. Make allowance for masks being shifted to
zero.
---
Diffs of the changes: (+1 -1)
PPC32ISelPattern.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.136 llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.137
--- llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.136 Fri Aug 12 18:38:02 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp Fri Aug 12 18:52:46 2005
@@ -640,7 +640,7 @@
}
// if the mask doesn't intersect any Indeterminant bits
- if (!(Mask & Indeterminant)) {
+ if (Mask && !(Mask & Indeterminant)) {
SH = Shift;
// make sure the mask is still a mask (wrap arounds may not be)
return isRunOfOnes(Mask, MB, ME);
More information about the llvm-commits
mailing list