[PATCH] AArch64: Fold immediate into the immediate field of logical instructions

Akira Hatanaka ahatanak at gmail.com
Fri Oct 10 12:48:12 PDT 2014


ping

================
Comment at: lib/Target/AArch64/AArch64ISelLowering.cpp:685
@@ +684,3 @@
+           "i32 or i64 is expected after legalization.");
+
+    uint64_t Mask = ((uint64_t)(-1LL) >> (64 - Size));
----------------
The code I previously had here didn't make sense, so I cleaned it up. It was checking Size > 0 after Size = std::max(VT.getSizeInBits(), 32u). Also, I changed it to break if VT is a vector, just in case this function is called on a vector node.

http://reviews.llvm.org/D5591






More information about the llvm-commits mailing list