[all-commits] [llvm/llvm-project] 096329: [TypePromotion] Fix a hardcoded use of 32 as the s...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Nov 10 22:12:54 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 096329199125d4b14cf12b86d89449c274ce9f36
https://github.com/llvm/llvm-project/commit/096329199125d4b14cf12b86d89449c274ce9f36
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-11-10 (Wed, 10 Nov 2021)
Changed paths:
M llvm/lib/CodeGen/TypePromotion.cpp
Log Message:
-----------
[TypePromotion] Fix a hardcoded use of 32 as the size being promoted to.
At least I think that's what the 32 here is. Use RegisterBitWidth
instead.
While there replace zext with zextOrSelf to simplify the code.
Reviewed By: samparker, dmgreen
Differential Revision: https://reviews.llvm.org/D113495
More information about the All-commits
mailing list