[llvm-commits] [llvm] r63388 - /llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp

Zhou Sheng zhousheng00 at gmail.com
Fri Jan 30 01:02:50 PST 2009


Author: sheng
Date: Fri Jan 30 03:02:50 2009
New Revision: 63388

URL: http://llvm.org/viewvc/llvm-project?rev=63388&view=rev
Log:
This is to fix the bug in IntrinsicLowering.cpp,
the LowerPartSet(). It didn't handle the situation correctly when
the low, high argument values are in reverse order (low > high)
with 'Val' type i32 (a corner case).

Modified:
    llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp

Modified: llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp?rev=63388&r1=63387&r2=63388&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp Fri Jan 30 03:02:50 2009
@@ -533,7 +533,8 @@
       Lo = new ZExtInst(Lo_pn, ValTy, "", entry);
     } else if (ValBits < 32) {
       Lo = new TruncInst(Lo_pn, ValTy, "", entry);
-    }
+    } else
+      Lo = Lo_pn;
     // Determine if the replacement bits are larger than the number of bits we
     // are replacing and deal with it.
     ICmpInst* is_large = 





More information about the llvm-commits mailing list