Fixed type assertion failure caused by trying to fold a masked load with a
select where the select condition is a scalar value
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | ||
---|---|---|
3234 | nit: unnecessary parentheses |
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | ||
---|---|---|
3234 | Not a big issue but looking at the definition of select I think this can just be isa<VectorType>(CondVal->getType) and having that first in the if's condition block would prevent unnecessary calls to match and thus improve compile time by the odd nanosecond. |
nit: unnecessary parentheses